CoolFace
Datasetpublic

enigmare/v2-crawler

sourceHugging Faceupdated 28d agoView on Hugging Face
1likes904downloads
cloud_google_com.jsonl31 linesDownload Raw Back to documentation
1{"id":"doc-rest_resource_projects_locations_services_quotai-78309879","source":"documentation","title":"REST Resource: projects.locations.services.quotaInfos | Cloud Quotas | Google Cloud Documentation","url":"https://cloud.google.com/docs/quotas/reference/rest/v1beta/projects.locations.services.quotaInfos","text":"Example:\n```text\nContainerTypeQuotaIncreaseEligibilityDimensionsInfo\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.477Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":22}}2{"id":"doc-listquotainfosresponse_cloud_quotas_google_cloud-5122711d","source":"documentation","title":"ListQuotaInfosResponse | Cloud Quotas | Google Cloud Documentation","url":"https://cloud.google.com/docs/quotas/reference/rest/v1beta/ListQuotaInfosResponse","text":"Example:\n```text\nQuotaInfo\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.477Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":11}}3{"id":"doc-rest_resource_projects_locations_quotapreference-d922c8c1","source":"documentation","title":"REST Resource: projects.locations.quotaPreferences | Cloud Quotas | Google Cloud Documentation","url":"https://cloud.google.com/docs/quotas/reference/rest/v1beta/projects.locations.quotaPreferences","text":"Example:\n```text\nQuotaConfig\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.478Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}4{"id":"doc-quickstart_create_a_compute_engine_vm_instance_u-3049aa00","source":"documentation","title":"Quickstart: Create a Compute Engine VM instance using Terraform | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/create-vm-instance","text":"Example:\n```text\ngcloud projects create PROJECT_ID\n```\n\nExample:\n```text\ngcloud config set project PROJECT_ID\n```\n\nExample:\n```text\ngcloud services enable compute.googleapis.com\n```\n\nExample:\n```text\ngcloud projects add-iam-policy-binding PROJECT_ID --member=\"user:USER_IDENTIFIER\" --role=ROLE\n```\n\nExample:\n```text\ngit clone https://github.com/terraform-google-modules/terraform-docs-samples.git --single-branch\n```\n\nExample:\n```text\ncd terraform-docs-samples/compute/quickstart/create_vm\n```\n\nExample:\n```text\ncat main.tf\n```\n\nExample:\n```text\nresource \"google_compute_instance\" \"default\" {\n  name         = \"my-vm\"\n  machine_type = \"n1-standard-1\"\n  zone         = \"us-central1-a\"\n\n  boot_disk {\n    initialize_params {\n      image = \"ubuntu-minimal-2210-kinetic-amd64-v20230126\"\n    }\n  }\n\n  network_interface {\n    network = \"default\"\n    access_config {}\n  }\n}\n```\n\nExample:\n```text\nterraform\n```\n\nExample:\n```text\nUsage: terraform [global options] <subcommand> [args]\n\nThe available commands for execution are listed below.\nThe primary workflow commands are given first, followed by\nless common or more advanced commands.\n\nMain commands:\n  init          Prepare your working directory for other commands\n  validate      Check whether the configuration is valid\n  plan          Show changes required by the current configuration\n  apply         Create or update infrastructure\n  destroy       Destroy previously-created infrastructure\n```\n\nExample:\n```text\nterraform init\n```\n\nExample:\n```text\nInitializing the backend...\n\nInitializing provider plugins...\n- Finding latest version of hashicorp/google...\n- Installing hashicorp/google v5.35.0...\n- Installed hashicorp/google v5.35.0 (signed by HashiCorp)\n\nTerraform has created a lock file .terraform.lock.hcl to record the provider\nselections it made above. Include this file in your version control repository\nso that Terraform can guarantee to make the same selections by default when\nyou run \"terraform init\" in the future.\n\nTerraform has been successfully initialized!\n```\n\nExample:\n```text\nterraform plan\n```\n\nExample:\n```text\nPlan: 1 to add, 0 to change, 0 to destroy.\n\nNote: You didn't use the -out option to save this plan, so Terraform can't\nguarantee to take exactly these actions if you run \"terraform apply\" now.\n```\n\nExample:\n```text\nterraform apply\n```\n\nExample:\n```text\nApply complete! Resources: 1 added, 0 changed, 0 destroyed\n```\n\nExample:\n```text\ngcloud compute ssh --zone=us-central1-a my-vm\n```\n\nExample:\n```text\nterraform destroy\n```\n\nExample:\n```text\nDestroy complete! Resources: 1 destroyed.\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.479Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":19,"totalLines":137,"estimatedTokens":648}}5{"id":"doc-store_terraform_state_in_a_cloud_storage_bucket_-4a097780","source":"documentation","title":"Store Terraform state in a Cloud Storage bucket | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/resource-management/store-state","text":"Example:\n```text\ngcloud auth application-default login\n```\n\nExample:\n```text\ngcloud projects create PROJECT_ID\n```\n\nExample:\n```text\ngcloud config set project PROJECT_ID\n```\n\nExample:\n```text\ngcloud services enable storage.googleapis.com\n```\n\nExample:\n```text\ngcloud projects add-iam-policy-binding PROJECT_ID --member=\"user:USER_IDENTIFIER\" --role=ROLE\n```\n\nExample:\n```text\ngit clone https://github.com/terraform-google-modules/terraform-docs-samples.git --single-branch\n```\n\nExample:\n```text\ncd terraform-docs-samples/storage/remote_terraform_backend_template\n```\n\nExample:\n```text\ncat main.tf\n```\n\nExample:\n```text\nresource \"random_id\" \"default\" {\n  byte_length = 8\n}\n\nresource \"google_storage_bucket\" \"default\" {\n  name     = \"${random_id.default.hex}-terraform-remote-backend\"\n  location = \"US\"\n\n  force_destroy               = false\n  public_access_prevention    = \"enforced\"\n  uniform_bucket_level_access = true\n\n  versioning {\n    enabled = true\n  }\n}\n\nresource \"local_file\" \"default\" {\n  file_permission = \"0644\"\n  filename        = \"${path.module}/backend.tf\"\n\n  # You can store the template in a file and use the templatefile function for\n  # more modularity, if you prefer, instead of storing the template inline as\n  # we do here.\n  content = <<-EOT\n  terraform {\n    backend \"gcs\" {\n      bucket = \"${google_storage_bucket.default.name}\"\n    }\n  }\n  EOT\n}\n```\n\nExample:\n```text\nterraform init\n```\n\nExample:\n```text\nterraform apply\n```\n\nExample:\n```text\nterraform init -migrate-state\n```\n\nExample:\n```text\nrm backend.tf\n```\n\nExample:\n```text\nterraform destroy\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.480Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":14,"totalLines":102,"estimatedTokens":398}}6{"id":"doc-basic_terraform_commands_terraform_on_google_clo-6ff88d9c","source":"documentation","title":"Basic Terraform commands | Terraform on Google Cloud | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/basic-commands","text":"Example:\n```text\nexport GOOGLE_CLOUD_PROJECT=PROJECT_ID\n```\n\nExample:\n```text\nmkdir DIRECTORY && cd DIRECTORY && touch main.tf\n```\n\nExample:\n```text\nterraform init\n```\n\nExample:\n```text\nterraform init -upgrade\n```\n\nExample:\n```text\nterraform plan\n```\n\nExample:\n```text\nterraform apply\n```\n\nExample:\n```text\nterraform fmt\n```\n\nExample:\n```text\nterraform validate\n```\n\nExample:\n```text\nterraform destroy\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.482Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":9,"totalLines":46,"estimatedTokens":105}}7{"id":"doc-export_your_google_cloud_resources_to_terraform_-dbb8097e","source":"documentation","title":"Export your Google Cloud resources to Terraform format | Terraform on Google Cloud | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/resource-management/export","text":"Example:\n```text\nexport GOOGLE_CLOUD_PROJECT=PROJECT_ID\n```\n\nExample:\n```text\ngcloud components install config-connector\n```\n\nExample:\n```text\nsudo apt-get install google-cloud-sdk-config-connector\n```\n\nExample:\n```text\ngcloud services enable cloudasset.googleapis.com\n```\n\nExample:\n```text\ngcloud beta services identity create --service=cloudasset.googleapis.com\n```\n\nExample:\n```text\ngcloud projects add-iam-policy-binding PROJECT_ID \\\n  --member=serviceAccount:service-PROJECT_NUMBER@gcp-sa-cloudasset.iam.gserviceaccount.com \\\n  --role=roles/servicenetworking.serviceAgent\n```\n\nExample:\n```text\ngcloud projects add-iam-policy-binding PROJECT_ID \\\n  --member=serviceAccount:service-PROJECT_NUMBER@gcp-sa-cloudasset.iam.gserviceaccount.com \\\n  --role=roles/storage.objectAdmin\n```\n\nExample:\n```text\ngcloud beta resource-config bulk-export \\\n  --project=PROJECT_ID \\\n  --resource-format=terraform\n```\n\nExample:\n```text\nmkdir OUTPUT_DIRECTORY\n```\n\nExample:\n```text\ngcloud beta resource-config bulk-export \\\n --path=OUTPUT_DIRECTORY \\\n --project=PROJECT_ID \\\n --resource-format=terraform\n```\n\nExample:\n```text\nOUTPUT_DIRECTORY/projects/PROJECT_ID/RESOURCE_TYPE\n```\n\nExample:\n```text\ngcloud beta resource-config bulk-export \\\n  --resource-format=terraform \\\n  --project=PROJECT_ID \\\n  >> gcp_resources.tf\n```\n\nExample:\n```text\ngcloud beta resource-config list-resource-types\n```\n\nExample:\n```text\ngcloud beta resource-config list-resource-types >> strings.txt\n```\n\nExample:\n```text\nKRM KIND: ComputeInstance\n```\n\nExample:\n```text\ngcloud beta resource-config bulk-export \\\n  --resource-types=RESOURCE_TYPE \\\n  --project=PROJECT_ID \\\n  --resource-format=terraform\n```\n\nExample:\n```text\ngcloud beta resource-config bulk-export \\\n  --resource-types=ComputeFirewall,ComputeInstance \\\n  --project=PROJECT_ID \\\n  --resource-format=terraform\n```\n\nExample:\n```text\ncd && mkdir tf-output && cd tf-output\n```\n\nExample:\n```text\nComputeBackendBucket\nComputeBackendService\nComputeForwardingRule\n```\n\nExample:\n```text\ngcloud beta resource-config bulk-export \\\n --resource-types-file=types.txt \\\n --path=tf-output \\\n --project=PROJECT_ID \\\n --resource-format=terraform\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.484Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":20,"totalLines":125,"estimatedTokens":542}}8{"id":"doc-understanding_google_cloud_apis_and_terraform_in-9df023ce","source":"documentation","title":"Understanding Google Cloud APIs and Terraform | Infrastructure Manager | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/understanding-apis-and-terraform","text":"Example:\n```text\n```hcl\nresource \"google_project_service\" \"compute_api\" {\n  project            = \"your-gcp-project-id\"\n  service            = \"compute.googleapis.com\"\n  disable_on_destroy = false\n}\n```\n```\n\nExample:\n```text\n```bash\nterraform import google_compute_instance.my_instance projects/your-gcp-project-id/zones/us-central1-a/instances/my-vm\n```\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.488Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":19,"estimatedTokens":93}}9{"id":"doc-deploy_a_basic_flask_web_server_by_using_terrafo-64914f8f","source":"documentation","title":"Deploy a basic Flask web server by using Terraform | Terraform on Google Cloud | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/deploy-flask-web-server","text":"Example:\n```text\nmkdir tf-tutorial && cd tf-tutorial\n```\n\nExample:\n```text\nnano main.tf\n```\n\nExample:\n```text\nresource \"google_compute_network\" \"vpc_network\" {\n  name                    = \"my-custom-mode-network\"\n  auto_create_subnetworks = false\n  mtu                     = 1460\n}\n\nresource \"google_compute_subnetwork\" \"default\" {\n  name          = \"my-custom-subnet\"\n  ip_cidr_range = \"10.0.1.0/24\"\n  region        = \"us-west1\"\n  network       = google_compute_network.vpc_network.id\n}\n```\n\nExample:\n```text\n# Create a single Compute Engine instance\nresource \"google_compute_instance\" \"default\" {\n  name         = \"flask-vm\"\n  machine_type = \"f1-micro\"\n  zone         = \"us-west1-a\"\n  tags         = [\"ssh\"]\n\n  boot_disk {\n    initialize_params {\n      image = \"debian-cloud/debian-11\"\n    }\n  }\n\n  # Install Flask\n  metadata_startup_script = \"sudo apt-get update; sudo apt-get install -yq build-essential python3-pip rsync; pip install flask\"\n\n  network_interface {\n    subnetwork = google_compute_subnetwork.default.id\n\n    access_config {\n      # Include this section to give the VM an external IP address\n    }\n  }\n}\n```\n\nExample:\n```text\nterraform init\n```\n\nExample:\n```text\nInitializing the backend...\n\nInitializing provider plugins...\n...\n\nTerraform has been successfully initialized!\n```\n\nExample:\n```text\nterraform plan\n```\n\nExample:\n```text\n...\n\nPlan: 1 to add, 0 to change, 0 to destroy.\n\nNote: You didn't use the -out option to save this plan, so Terraform can't\nguarantee to take exactly these actions if you run \"terraform apply\" now.\n```\n\nExample:\n```text\nterraform apply\n```\n\nExample:\n```text\nresource \"google_compute_firewall\" \"ssh\" {\n  name = \"allow-ssh\"\n  allow {\n    ports    = [\"22\"]\n    protocol = \"tcp\"\n  }\n  direction     = \"INGRESS\"\n  network       = google_compute_network.vpc_network.id\n  priority      = 1000\n  source_ranges = [\"0.0.0.0/0\"]\n  target_tags   = [\"ssh\"]\n}\n```\n\nExample:\n```text\nnano app.py\n```\n\nExample:\n```text\nfrom flask import Flask\napp = Flask(__name__)\n\n@app.route('/')\ndef hello_cloud():\n  return 'Hello Cloud!'\n\napp.run(host='0.0.0.0')\n```\n\nExample:\n```text\npython3 app.py\n```\n\nExample:\n```text\ncurl http://0.0.0.0:5000\n```\n\nExample:\n```text\nresource \"google_compute_firewall\" \"flask\" {\n  name    = \"flask-app-firewall\"\n  network = google_compute_network.vpc_network.id\n\n  allow {\n    protocol = \"tcp\"\n    ports    = [\"5000\"]\n  }\n  source_ranges = [\"0.0.0.0/0\"]\n}\n```\n\nExample:\n```text\n// A variable for extracting the external IP address of the VM\noutput \"Web-server-URL\" {\n value = join(\"\",[\"http://\",google_compute_instance.default.network_interface.0.access_config.0.nat_ip,\":5000\"])\n}\n```\n\nExample:\n```text\nWeb-server-URL = \"http://IP_ADDRESS:5000\"\n```\n\nExample:\n```text\nterraform output\n```\n\nExample:\n```text\nterraform destroy\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.488Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":19,"totalLines":170,"estimatedTokens":700}}10{"id":"doc-import_your_google_cloud_resources_into_terrafor-6912f045","source":"documentation","title":"Import your Google Cloud resources into Terraform state | Terraform on Google Cloud | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/resource-management/import","text":"Example:\n```text\nresource \"google_storage_bucket\" \"sample\" {\n name          = \"my-bucket\"\n project       = \"sample-project\"\n location      = \"US\"\n force_destroy = true\n}\n```\n\nExample:\n```text\nterraform import google_storage_bucket.sample sample-project/my-bucket\n```\n\nExample:\n```text\nterraform import google_storage_bucket.sample sample-project/my-bucket\ngoogle_storage_bucket.sample: Importing from ID \"sample-project/my-bucket\"...\ngoogle_storage_bucket.sample: Import prepared!\nPrepared google_storage_bucket for import\ngoogle_storage_bucket.sample: Refreshing state... [id=sample-project/my-bucket]\nImport successful!\nThe resources that were imported are shown above. These resources are now in\nyour Terraform state and will henceforth be managed by Terraform.\n```\n\nExample:\n```text\nmodule \"gcs_bucket\" {\n source  = \"terraform-google-modules/cloud-storage/google//modules/simple_bucket\"\n version = \"~> 3.4\"\n\n name       = \"my-bucket\"\n project_id = \"sample-project\"\n location   = \"us-east1\"\n}\n```\n\nExample:\n```text\nterraform apply\nmodule.gcs_bucket.google_storage_bucket.bucket: Creating...\n╷\n│ Error: googleapi: Error 409: Your previous request to create the named bucket succeeded and you already own it., conflict\n│\n│   with module.gcs_bucket.google_storage_bucket.bucket,\n```\n\nExample:\n```text\nmodule.gcs_bucket.google_storage_bucket.bucket will be created\n+ resource \"google_storage_bucket\" \"bucket\" {\n    + name                        = \"my-bucket\"\n    + project                     = \"sample-project\"\n    ...\n  }\n```\n\nExample:\n```text\nterraform import module.gcs_bucket.google_storage_bucket.bucket sample-project/my-bucket\n```\n\nExample:\n```text\nterraform import module.gcs_bucket.google_storage_bucket.bucket sample-project/my-bucket\nmodule.gcs_bucket.google_storage_bucket.bucket: Importing from ID \"sample-project/my-bucket\"...\nmodule.gcs_bucket.google_storage_bucket.bucket: Import prepared!\nPrepared google_storage_bucket for import\nmodule.gcs_bucket.google_storage_bucket.bucket: Refreshing state... [id=sample-project/my-bucket]\nImport successful!\nThe resources that were imported are shown above. These resources are now in\nyour Terraform state and will henceforth be managed by Terraform.\n```\n\nExample:\n```text\nimport {\n  # Provider-defined resource ID of the cloud resource to be imported\n  id = \"projects/PROJECT_ID/global/networks/my-network\"\n\n  # Terraform resource address to be created\n  to = google_compute_network.my_network\n}\n```\n\nExample:\n```text\nterraform plan -generate-config-out=generated_resources.tf\n```\n\nExample:\n```text\nexport GOOGLE_CLOUD_PROJECT=PROJECT_ID\n```\n\nExample:\n```text\ngcloud components install config-connector\n```\n\nExample:\n```text\nsudo apt-get install google-cloud-sdk-config-connector\n```\n\nExample:\n```text\ngcloud services enable cloudasset.googleapis.com\n```\n\nExample:\n```text\nmkdir OUTPUT_DIRECTORY\n```\n\nExample:\n```text\ngcloud beta resource-config bulk-export \\\n   --path=OUTPUT_DIRECTORY \\\n   --project=PROJECT_ID \\\n   --resource-format=terraform\n```\n\nExample:\n```text\ngcloud beta resource-config terraform generate-import OUTPUT_DIRECTORY\n```\n\nExample:\n```text\nprovider \"google\" {\n project = \"PROJECT_ID\"\n}\n\nmodule \"OUTPUT_DIRECTORY-projects-PROJECT_ID-ComputeFirewall\" {\n source = \"./OUTPUT_DIRECTORY/projects/PROJECT_ID/ComputeFirewall\"\n}\n\nmodule \"OUTPUT_DIRECTORY-projects-PROJECT_ID-ComputeBackendService-global\" {\n source = \"./OUTPUT_DIRECTORY/projects/PROJECT_ID/ComputeBackendService/global\"\n}\n```\n\nExample:\n```text\n#!/bin/sh\n# Terraform Import Script generated by gcloud cli\n\nterraform import module.OUTPUT_DIRECTORY-projects-PROJECT_ID-ComputeFirewall.google_compute_firewall.allow_ssh projects/PROJECT_ID/global/firewalls/allow-ssh\n```\n\nExample:\n```text\nterraform init\n```\n\nExample:\n```text\n./terraform_import_20220331-19-12-33.sh\n```\n\nExample:\n```text\nmodule.examples-projects-PROJECT_ID-ComputeInstance-us-central1-a.google_compute_instance.instance_1:\nImporting from ID\n\"projects/PROJECT_ID/zones/us-central1-a/instances/instance-1\"...\nmodule.examples-projects-PROJECT_ID-ComputeInstance-us-central1-a.google_compute_instance.instance_1:\nImport prepared!\n Prepared google_compute_instance for import\nmodule.examples-projects-PROJECT_ID-ComputeInstance-us-central1-a.google_compute_instance.instance_1:\nRefreshing state...\n[id=projects/PROJECT_ID/zones/us-central1-a/instances/instance-1]\n\nImport successful!\n\nThe resources that were imported are shown above. These resources are now in\nyour Terraform state and will henceforth be managed by Terraform.\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.489Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":22,"totalLines":182,"estimatedTokens":1135}}11{"id":"doc-configure_your_build_and_run_images_buildpacks_g-31f19346","source":"documentation","title":"Configure your build and run images | Buildpacks | Google Cloud Documentation","url":"https://cloud.google.com/docs/buildpacks/build-run-image","text":"Example:\n```text\nFROM gcr.io/buildpacks/builder\nUSER root\nRUN apt-get update && apt-get install -y --no-install-recommends \\\n  subversion && \\\n  apt-get clean && \\\n  rm -rf /var/lib/apt/lists/*\nUSER cnb\n```\n\nExample:\n```text\ndocker build -t BUILDER_IMAGE_NAME -f builder.Dockerfile .\n```\n\nExample:\n```text\npack build SERVICE_IMAGE_NAME --builder BUILDER_IMAGE_NAME\n```\n\nExample:\n```text\nFROM gcr.io/buildpacks/gcp/run\nUSER root\nRUN apt-get update && apt-get install -y --no-install-recommends \\\n  imagemagick && \\\n  apt-get clean && \\\n  rm -rf /var/lib/apt/lists/*\nUSER 33:33\n```\n\nExample:\n```text\ndocker build -t RUN_IMAGE_NAME -f run.Dockerfile .\n```\n\nExample:\n```text\npack build SERVICE_IMAGE_NAME --builder gcr.io/buildpacks/builder:v1 --run-image RUN_IMAGE\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.492Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":43,"estimatedTokens":195}}12{"id":"doc-best_practices_for_general_style_and_structure_t-c89363be","source":"documentation","title":"Best practices for general style and structure | Terraform on Google Cloud | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/best-practices-for-terraform","text":"Example:\n```text\nresource \"google_compute_instance\" \"web_server\" {\n  name = \"web-server\"\n}\n```\n\nExample:\n```text\nresource \"google_compute_instance\" \"web-server\" {\n  name = \"web-server\"\n}\n```\n\nExample:\n```text\nresource \"google_compute_global_address\" \"main\" { ... }\n```\n\nExample:\n```text\nresource \"google_compute_global_address\" \"main_global_address\" { … }\n```\n\nExample:\n```text\noutput \"name\" {\n  description = \"Name of instance\"\n  value       = google_compute_instance.main.name\n}\n```\n\nExample:\n```text\noutput \"name\" {\n  description = \"Name of instance\"\n  value       = var.name\n}\n```\n\nExample:\n```text\nresource \"google_sql_database_instance\" \"main\" {\n  name = \"primary-instance\"\n  settings {\n    tier = \"D0\"\n  }\n\n  lifecycle {\n    prevent_destroy = true\n  }\n}\n```\n\nExample:\n```text\nvariable \"readers\" {\n  description = \"...\"\n  type        = list\n  default     = []\n}\n\nresource \"resource_type\" \"reference_name\" {\n  // Do not create this resource if the list of readers is empty.\n  count = length(var.readers) == 0 ? 0 : 1\n  ...\n}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.494Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":8,"totalLines":70,"estimatedTokens":262}}13{"id":"doc-create_terraform_constraints_terraform_on_google-775face7","source":"documentation","title":"Create Terraform constraints | Terraform on Google Cloud | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/policy-validation/create-terraform-constraints","text":"Example:\n```text\n// tfplan.json\n{\n  \"format_version\": \"0.2\",\n  \"terraform_version\": \"1.0.10\",\n  \"resource_changes\": [\n    {\n      \"address\": \"google_compute_address.internal_with_subnet_and_address\",\n      \"mode\": \"managed\",\n      \"type\": \"google_compute_address\",\n      \"name\": \"internal_with_subnet_and_address\",\n      \"provider_name\": \"registry.terraform.io/hashicorp/google\",\n      \"change\": {\n        \"actions\": [\n          \"create\"\n        ],\n        \"before\": null,\n        \"after\": {\n          \"address\": \"10.0.42.42\",\n          \"address_type\": \"INTERNAL\",\n          \"description\": null,\n          \"name\": \"my-internal-address\",\n          \"network\": null,\n          \"prefix_length\": null,\n          \"region\": \"us-central1\",\n          \"timeouts\": null\n        },\n        \"after_unknown\": {\n          \"creation_timestamp\": true,\n          \"id\": true,\n          \"network_tier\": true,\n          \"project\": true,\n          \"purpose\": true,\n          \"self_link\": true,\n          \"subnetwork\": true,\n          \"users\": true\n        },\n        \"before_sensitive\": false,\n        \"after_sensitive\": {\n          \"users\": []\n        }\n      }\n    }\n  ],\n  // other data\n}\n```\n\nExample:\n```text\n# validator/tf-compute-address-address-type-allowlist-constraint-v1.rego\npackage templates.gcp.TFComputeAddressAddressTypeAllowlistConstraintV1\n\nviolation[{\n  \"msg\": message,\n  \"details\": metadata,\n}] {\n  resource := input.review\n  resource.type == \"google_compute_address\"\n\n  allowed_address_types := input.parameters.allowed_address_types\n  count({resource.change.after.address_type} & allowed_address_types) >= 1\n  message := sprintf(\n    \"Compute address %s has a disallowed address_type: %s\",\n    [resource.address, resource.change.after.address_type]\n  )\n  metadata := {\"resource\": resource.name}\n}\n```\n\nExample:\n```text\n# validator/tf-compute-address-address-type-allowlist-constraint-v1-test.rego\npackage templates.gcp.TFComputeAddressAddressTypeAllowlistConstraintV1\n\nimport data.test.fixtures.tf-compute-address-address-type-allowlist-constraint-v1-test.resource_changes as resource_changes\n\ntest_violation_with_disallowed_address_type {\n  parameters := {\n    \"allowed_address_types\": \"EXTERNAL\"\n  }\n  violations := violation with input.review as resource_changes[_]\n    with input.parameters as parameters\n  count(violations) == 1\n}\n```\n\nExample:\n```text\n# policies/templates/tf-compute-address-address-type-allowlist-constraint-v1.yaml\napiVersion: templates.gatekeeper.sh/v1beta1\nkind: ConstraintTemplate\nmetadata:\n  name: tfcomputeaddressaddresstypeallowlistconstraintv1\nspec:\n  crd:\n    spec:\n      names:\n        kind: TFComputeAddressAddressTypeAllowlistConstraintV1\n      validation:\n        openAPIV3Schema:\n          properties:\n            allowed_address_types:\n              description: \"A list of address_types allowed, for example: ['INTERNAL']\"\n              type: array\n              items:\n                type: string\n  targets:\n    - target: validation.resourcechange.terraform.cloud.google.com\n      rego: |\n            #INLINE(\"validator/tf-compute-address-address-type-allowlist-constraint-v1.rego\")\n            #ENDINLINE\n```\n\nExample:\n```text\n| policy-library/\n|- validator/\n||- tf-compute-address-address-type-allowlist-constraint-v1.rego\n||- tf-compute-address-address-type-allowlist-constraint-v1-test.rego\n|- policies\n||- templates\n|||- tf-compute-address-address-type-allowlist-constraint-v1.yaml\n```\n\nExample:\n```text\n# policies/constraints/tf_compute_address_internal_only.yaml\napiVersion: constraints.gatekeeper.sh/v1beta1\nkind: TFComputeAddressAddressTypeAllowlistConstraintV1\nmetadata:\n  name: tf_compute_address_internal_only\nspec:\n  severity: high\n  match:\n    addresses:\n    - \"**\"\n  parameters:\n    allowed_address_types:\n    - \"INTERNAL\"\n```\n\nExample:\n```text\napiVersion: constraints.gatekeeper.sh/v1beta1\nkind: GCPAlwaysViolatesConstraintV1\nmetadata:\n  name: disallow_unknown_ancestry\n  annotations:\n    description: |\n      Unknown ancestry is not allowed; use --project=<project> to set a\n      default ancestry\nspec:\n  severity: high\n  match:\n    ancestries:\n    - \"organizations/unknown\"\n  parameters: {}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.495Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":162,"estimatedTokens":1043}}14{"id":"doc-configure_cloud_run_and_cloud_run_functions_serv-267a21a1","source":"documentation","title":"Configure Cloud Run and Cloud Run functions services | Buildpacks | Google Cloud Documentation","url":"https://cloud.google.com/docs/buildpacks/service-specific-configs","text":"Example:\n```text\nmvn clean package --batch-mode -DskipTests -Dhttp.keepAlive=false\n```\n\nExample:\n```text\ngradle clean assemble -x test --build-cache\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.495Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":42}}15{"id":"doc-build_a_function_with_buildpacks_buildpacks_goog-d5350371","source":"documentation","title":"Build a function with buildpacks | Buildpacks | Google Cloud Documentation","url":"https://cloud.google.com/docs/buildpacks/build-function","text":"Example:\n```text\n[[build.env]]\n    name = \"GOOGLE_FUNCTION_TARGET\"\n    value =  \"ENTRY_POINT\"\n```\n\nExample:\n```text\npack build --builder=gcr.io/buildpacks/builder IMAGE_NAME\n```\n\nExample:\n```text\ngit clone https://github.com/GoogleCloudPlatform/buildpack-samples.git\n```\n\nExample:\n```sh\ncd buildpack-samples/sample-functions-framework-go\n```\n\nExample:\n```sh\ncd buildpack-samples/sample-functions-framework-java-mvn\n```\n\nExample:\n```sh\ncd buildpack-samples/sample-functions-framework-node\n```\n\nExample:\n```sh\ncd buildpack-samples/sample-functions-framework-python\n```\n\nExample:\n```sh\ncd buildpack-samples/sample-functions-framework-ruby\n```\n\nExample:\n```sh\npack build --builder=gcr.io/buildpacks/builder sample-functions-framework-go\n```\n\nExample:\n```sh\npack build --builder gcr.io/buildpacks/builder:v1 sample-functions-java-mvn\n```\n\nExample:\n```sh\npack build --builder=gcr.io/buildpacks/builder sample-functions-framework-node\n```\n\nExample:\n```sh\npack build --builder=gcr.io/buildpacks/builder sample-functions-framework-python\n```\n\nExample:\n```sh\npack build --builder=gcr.io/buildpacks/builder sample-functions-framework-ruby\n```\n\nExample:\n```sh\ndocker run -p8080:8080 sample-functions-framework-go\n```\n\nExample:\n```sh\ndocker run -it -ePORT=8080 -p8080:8080 sample-functions-java-mvn\n```\n\nExample:\n```sh\ndocker run -it -ePORT=8080 -p8080:8080 sample-functions-framework-node\n```\n\nExample:\n```sh\ndocker run -it -ePORT=8080 -p8080:8080 sample-functions-framework-python\n```\n\nExample:\n```sh\ndocker run -it -ePORT=8080 -p8080:8080 sample-functions-framework-ruby\n```\n\nExample:\n```text\ngcloud init\n```\n\nExample:\n```text\ngcloud artifacts repositories create REPO_NAME \\\n--repository-format=docker \\\n--location=REGION --description=\"DESCRIPTION\"\n```\n\nExample:\n```text\ngcloud artifacts repositories create buildpacks-docker-repo --repository-format=docker \\\n--location=us-west2 --description=\"Docker repository\"\n```\n\nExample:\n```text\ngcloud artifacts repositories list\n```\n\nExample:\n```text\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/IMAGE_NAME\n```\n\nExample:\n```text\noptions:\n   logging: CLOUD_LOGGING_ONLY\n   pool: {}\n projectId: PROJECT_ID\n steps:\n - name: gcr.io/k8s-skaffold/pack\n   entrypoint: pack\n   args:\n   - build\n   - LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/IMAGE_NAME\n   - --builder\n   - gcr.io/buildpacks/builder:latest\n   - --network\n   - cloudbuild\n   - --publish\n - name: gcr.io/cloud-builders/docker\n   entrypoint: pack\n   args:\n   - pull\n   - LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/IMAGE_NAME\n images:\n - LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/IMAGE_NAME\n```\n\nExample:\n```text\ngcloud builds submit .\n```\n\nExample:\n```sh\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/sample-functions-framework-go\n```\n\nExample:\n```sh\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/sample-functions-framework-gradle\n```\n\nExample:\n```sh\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/sample-functions-framework-node\n```\n\nExample:\n```sh\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/sample-functions-framework-python\n```\n\nExample:\n```sh\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/sample-functions-framework-ruby\n```\n\nExample:\n```text\ngcloud artifacts docker images list LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.497Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":31,"totalLines":182,"estimatedTokens":861}}16{"id":"doc-create_a_policy_library_terraform_on_google_clou-c61efc4e","source":"documentation","title":"Create a policy library | Terraform on Google Cloud | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/policy-validation/create-policy-library","text":"Example:\n```text\ngit clone https://github.com/GoogleCloudPlatform/policy-library.git\ncd policy-library\ngit remote set-url origin POLICY_LIBRARY_REPO\ngit push origin main\n```\n\nExample:\n```text\ngit add --all .\ngit commit -m \"Initial commit of policy library constraints\"\ngit push -u origin main\n```\n\nExample:\n```text\ngit remote add public https://github.com/GoogleCloudPlatform/policy-library.git\ngit pull public main\ngit push origin main\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.497Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":23,"estimatedTokens":114}}17{"id":"doc-build_an_application_with_buildpacks_buildpacks_-87e33916","source":"documentation","title":"Build an application with buildpacks | Buildpacks | Google Cloud Documentation","url":"https://cloud.google.com/docs/buildpacks/build-application","text":"Example:\n```text\npack build --builder=gcr.io/buildpacks/builder IMAGE_NAME\n```\n\nExample:\n```text\ngit clone https://github.com/GoogleCloudPlatform/buildpack-samples.git\n```\n\nExample:\n```sh\ncd buildpack-samples/sample-go\n```\n\nExample:\n```sh\ncd buildpack-samples/sample-java-gradle\n```\n\nExample:\n```sh\ncd buildpack-samples/sample-node\n```\n\nExample:\n```sh\ncd buildpack-samples/sample-php\n```\n\nExample:\n```sh\ncd buildpack-samples/sample-python\n```\n\nExample:\n```sh\ncd buildpack-samples/sample-ruby\n```\n\nExample:\n```sh\ncd buildpack-samples/sample-dotnet\n```\n\nExample:\n```sh\npack build --builder=gcr.io/buildpacks/builder sample-go\n```\n\nExample:\n```sh\npack build --builder=gcr.io/buildpacks/builder sample-java-gradle\n```\n\nExample:\n```sh\npack build --builder=gcr.io/buildpacks/builder sample-node\n```\n\nExample:\n```sh\npack build --builder=gcr.io/buildpacks/builder sample-php\n```\n\nExample:\n```sh\npack build --builder=gcr.io/buildpacks/builder sample-python\n```\n\nExample:\n```sh\npack build --builder=gcr.io/buildpacks/builder sample-ruby\n```\n\nExample:\n```sh\npack build --builder=gcr.io/buildpacks/builder sample-dotnet\n```\n\nExample:\n```sh\ndocker run -p8080:8080 sample-go\n```\n\nExample:\n```sh\ndocker run -it -ePORT=8080 -p8080:8080 sample-java-gradle\n```\n\nExample:\n```sh\ndocker run -it -ePORT=8080 -p8080:8080 sample-node\n```\n\nExample:\n```sh\ndocker run -it --rm -p 8080:8080 sample-php\n```\n\nExample:\n```sh\ndocker run -it -ePORT=8080 -p8080:8080 sample-python\n```\n\nExample:\n```sh\ndocker run -it -ePORT=8080 -p8080:8080 sample-ruby\n```\n\nExample:\n```sh\ndocker run -it -ePORT=8080 -p8080:8080 sample-dotnet\n```\n\nExample:\n```text\ngcloud init\n```\n\nExample:\n```text\ngcloud artifacts repositories create REPO_NAME \\\n--repository-format=docker \\\n--location=REGION --description=\"DESCRIPTION\"\n```\n\nExample:\n```text\ngcloud artifacts repositories create buildpacks-docker-repo --repository-format=docker \\\n--location=us-west2 --description=\"Docker repository\"\n```\n\nExample:\n```text\ngcloud artifacts repositories list\n```\n\nExample:\n```text\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/IMAGE_NAME\n```\n\nExample:\n```text\noptions:\n   logging: CLOUD_LOGGING_ONLY\n   pool: {}\n projectId: PROJECT_ID\n steps:\n - name: gcr.io/k8s-skaffold/pack\n   entrypoint: pack\n   args:\n   - build\n   - LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/IMAGE_NAME\n   - --builder\n   - gcr.io/buildpacks/builder:latest\n   - --network\n   - cloudbuild\n   - --publish\n - name: gcr.io/cloud-builders/docker\n   entrypoint: pack\n   args:\n   - pull\n   - LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/IMAGE_NAME\n images:\n - LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/IMAGE_NAME\n```\n\nExample:\n```text\ngcloud builds submit .\n```\n\nExample:\n```sh\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/sample-go\n```\n\nExample:\n```sh\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/sample-java-gradle\n```\n\nExample:\n```sh\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/sample-node\n```\n\nExample:\n```sh\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/sample-php\n```\n\nExample:\n```sh\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/sample-python\n```\n\nExample:\n```sh\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/sample-ruby\n```\n\nExample:\n```sh\ngcloud builds submit --pack image=LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/sample-dotnet\n```\n\nExample:\n```text\ngcloud artifacts docker images list LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.498Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":38,"totalLines":215,"estimatedTokens":900}}18{"id":"doc-create_cai_constraints_terraform_on_google_cloud-7fce52fc","source":"documentation","title":"Create CAI constraints | Terraform on Google Cloud | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/policy-validation/create-cai-constraints","text":"Example:\n```text\n[\n  {\n    \"name\": \"//compute.googleapis.com/projects/789/regions/us-central1/addresses/my-internal-address\",\n    \"asset_type\": \"compute.googleapis.com/Address\",\n    \"ancestors: [\n      \"organization/123\",\n      \"folder/456\",\n      \"project/789\"\n    ],\n    \"resource\": {\n      \"version\": \"v1\",\n      \"discovery_document_uri\": \"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest\",\n      \"discovery_name\": \"Address\",\n      \"parent\": \"//cloudresourcemanager.googleapis.com/projects/789\",\n      \"data\": {\n        \"address\": \"10.0.42.42\",\n        \"addressType\": \"INTERNAL\",\n        \"name\": \"my-internal-address\",\n        \"region\": \"projects/789/global/regions/us-central1\"\n      }\n    }\n  },\n]\n```\n\nExample:\n```text\n# validator/gcp_compute_address_address_type_allowlist_constraint_v1.rego\npackage templates.gcp.GCPComputeAddressAddressTypeAllowlistConstraintV1\n\nviolation[{\n  \"msg\": message,\n  \"details\": metadata,\n}] {\n  asset := input.review\n  asset.asset_type == \"compute.googleapis.com/Address\"\n\n  allowed_address_types := input.parameters.allowed_address_types\n  count({asset.resource.data.addressType} & allowed_address_types) >= 1\n  message := sprintf(\n    \"Compute address %s has a disallowed address_type: %s\",\n    [asset.name, asset.resource.data.addressType]\n  )\n  metadata := {\"asset\": asset.name}\n}\n```\n\nExample:\n```text\n# validator/gcp_compute_address_address_type_allowlist_constraint_v1_test.rego\npackage templates.gcp.GCPComputeAddressAddressTypeAllowlistConstraintV1\n\nimport data.test.fixtures.gcp_compute_address_address_type_allowlist_constraint_v1_test.assets as assets\n\ntest_violation_with_disallowed_address_type {\n  parameters := {\n    \"allowed_address_types\": \"EXTERNAL\"\n  }\n  violations := violation with input.review as assets[_]\n    with input.parameters as parameters\n  count(violations) == 1\n}\n```\n\nExample:\n```text\n# policies/templates/gcp_compute_address_address_type_allowlist_constraint_v1.yaml\napiVersion: templates.gatekeeper.sh/v1beta1\nkind: ConstraintTemplate\nmetadata:\n  name: gcpcomputeaddressaddresstypeallowlistconstraintv1\nspec:\n  crd:\n    spec:\n      names:\n        kind: GCPComputeAddressAddressTypeAllowlistConstraintV1\n      validation:\n        openAPIV3Schema:\n          properties:\n            allowed_address_types:\n              description: \"A list of address_types allowed, for example: ['INTERNAL']\"\n              type: array\n              items:\n                type: string\n  targets:\n    - target: validation.gcp.forsetisecurity.org\n      rego: |\n            #INLINE(\"validator/gcp_compute_address_address_type_allowlist_constraint_v1.rego\")\n            #ENDINLINE\n```\n\nExample:\n```text\n| policy-library/\n|- validator/\n||- gcp_compute_address_address_type_allowlist_constraint_v1.rego\n||- gcp_compute_address_address_type_allowlist_constraint_v1_test.rego\n|- policies\n||- templates\n|||- gcp_compute_address_address_type_allowlist_constraint_v1.yaml\n```\n\nExample:\n```text\n# policies/constraints/gcp_compute_address_internal_only.yaml\napiVersion: constraints.gatekeeper.sh/v1beta1\nkind: GCPComputeAddressAddressTypeAllowlistConstraintV1\nmetadata:\n  name: gcp_compute_address_internal_only\nspec:\n  severity: high\n  match:\n    ancestries:\n    - \"**\"\n  parameters:\n    allowed_address_types:\n    - \"INTERNAL\"\n```\n\nExample:\n```text\napiVersion: constraints.gatekeeper.sh/v1beta1\nkind: GCPAlwaysViolatesConstraintV1\nmetadata:\n  name: disallow_unknown_ancestry\n  annotations:\n    description: |\n      Unknown ancestry is not allowed; use --project=<project> to set a\n      default ancestry\nspec:\n  severity: high\n  match:\n    ancestries:\n    - \"organizations/unknown\"\n  parameters: {}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.500Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":140,"estimatedTokens":918}}19{"id":"doc-gcloud_beta_terraform_vet_quickstart_terraform_o-fe016307","source":"documentation","title":"gcloud beta terraform vet quickstart | Terraform on Google Cloud | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/policy-validation/quickstart","text":"Example:\n```text\ncp samples/iam_service_accounts_only.yaml policies/constraints\n```\n\nExample:\n```text\ncat policies/constraints/iam_service_accounts_only.yaml\n```\n\nExample:\n```text\n# This constraint checks that all IAM policy members are in the\n# \"gserviceaccount.com\" domain.\napiVersion: constraints.gatekeeper.sh/v1alpha1\nkind: GCPIAMAllowedPolicyMemberDomainsConstraintV2\nmetadata:\n  name: service_accounts_only\n  annotations:\n    description: Checks that members that have been granted IAM roles belong to allowlisted\n      domains.\nspec:\n  severity: high\n  match:\n    target: # {\"$ref\":\"#/definitions/io.k8s.cli.setters.target\"}\n    - \"organizations/**\"\n  parameters:\n    domains:\n    - gserviceaccount.com\n```\n\nExample:\n```text\nterraform {\n  required_providers {\n    google = {\n      source = \"hashicorp/google\"\n      version = \"~> 3.84\"\n    }\n  }\n}\n\nresource \"google_project_iam_binding\" \"sample_iam_binding\" {\n  project = \"PROJECT_ID\"\n  role    = \"roles/viewer\"\n\n  members = [\n    \"user:EMAIL_ADDRESS\"\n  ]\n}\n```\n\nExample:\n```text\nterraform init\n```\n\nExample:\n```text\nterraform plan -out=test.tfplan\n```\n\nExample:\n```text\nterraform show -json ./test.tfplan > ./tfplan.json\n```\n\nExample:\n```text\nsudo apt-get install google-cloud-sdk-terraform-tools\n```\n\nExample:\n```text\ngcloud beta terraform vet tfplan.json --policy-library=. --format=json\n```\n\nExample:\n```text\n[\n{\n  \"constraint\": \"GCPIAMAllowedPolicyMemberDomainsConstraintV2.service_accounts_only\",\n  \"constraint_config\": {\n    \"api_version\": \"constraints.gatekeeper.sh/v1alpha1\",\n    \"kind\": \"GCPIAMAllowedPolicyMemberDomainsConstraintV2\",\n    \"metadata\": {\n      \"annotations\": {\n        \"description\": \"Checks that members that have been granted IAM roles belong to allowlisted domains.\",\n        \"validation.gcp.forsetisecurity.org/originalName\": \"service_accounts_only\",\n        \"validation.gcp.forsetisecurity.org/yamlpath\": \"policies/constraints/iam_service_accounts_only.yaml\"\n      },\n      \"name\": \"service-accounts-only\"\n    },\n    \"spec\": {\n      \"match\": {\n        \"target\": [\n          \"organizations/**\"\n        ]\n      },\n      \"parameters\": {\n        \"domains\": [\n          \"gserviceaccount.com\"\n        ]\n      },\n      \"severity\": \"high\"\n    }\n  },\n  \"message\": \"IAM policy for //cloudresourcemanager.googleapis.com/projects/PROJECT_ID contains member from unexpected domain: user:user@example.com\",\n  \"metadata\": {\n    \"ancestry_path\": \"organizations/ORG_ID/projects/PROJECT_ID\",\n    \"constraint\": {\n      \"annotations\": {\n        \"description\": \"Checks that members that have been granted IAM roles belong to allowlisted domains.\",\n        \"validation.gcp.forsetisecurity.org/originalName\": \"service_accounts_only\",\n        \"validation.gcp.forsetisecurity.org/yamlpath\": \"policies/constraints/iam_service_accounts_only.yaml\"\n      },\n      \"labels\": {},\n      \"parameters\": {\n        \"domains\": [\n          \"gserviceaccount.com\"\n        ]\n      }\n    },\n    \"details\": {\n      \"member\": \"user:user@example.com\",\n      \"resource\": \"//cloudresourcemanager.googleapis.com/projects/PROJECT_ID\"\n    }\n  },\n  \"resource\": \"//cloudresourcemanager.googleapis.com/projects/PROJECT_ID\",\n  \"severity\": \"high\"\n}\n]\n```\n\nExample:\n```text\napiVersion: constraints.gatekeeper.sh/v1alpha1\nkind: GCPIAMAllowedPolicyMemberDomainsConstraintV1\nmetadata:\n  name: service_accounts_only\nspec:\n  severity: high\n  match:\n    target: [\"organizations/**\"]\n  parameters:\n    domains:\n      - gserviceaccount.com\n      - example.com\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.501Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":11,"totalLines":151,"estimatedTokens":875}}20{"id":"doc-validate_policies_terraform_on_google_cloud_goog-8866fd38","source":"documentation","title":"Validate policies | Terraform on Google Cloud | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/policy-validation/validate-policies","text":"Example:\n```text\ngcloud components update\ngcloud components install terraform-tools\n```\n\nExample:\n```text\ngcloud beta terraform vet --help\n```\n\nExample:\n```text\nterraform plan -out=tfplan.tfplan\nterraform show -json ./tfplan.tfplan > ./tfplan.json\n```\n\nExample:\n```text\ngit clone POLICY_LIBRARY_REPO POLICY_LIBRARY_DIR\ngcloud beta terraform vet tfplan.json --policy-library=POLICY_LIBRARY_DIR\n```\n\nExample:\n```text\n[\n  {\n    \"constraint\": \"GCPIAMAllowedPolicyMemberDomainsConstraintV2.service_accounts_only\",\n    \"constraint_config\": {\n      \"api_version\": \"constraints.gatekeeper.sh/v1alpha1\",\n      \"kind\": \"GCPIAMAllowedPolicyMemberDomainsConstraintV2\",\n      \"metadata\": {\n        \"annotations\": {\n          \"description\": \"Checks that members that have been granted IAM roles belong to allowlisted domains.\",\n          \"validation.gcp.forsetisecurity.org/originalName\": \"service_accounts_only\",\n          \"validation.gcp.forsetisecurity.org/yamlpath\": \"policies/constraints/iam_service_accounts_only.yaml\"\n        },\n        \"name\": \"service-accounts-only\"\n      },\n      \"spec\": {\n        \"match\": {\n          \"target\": [\n            \"organizations/**\"\n          ]\n        },\n        \"parameters\": {\n          \"domains\": [\n            \"gserviceaccount.com\"\n          ]\n        },\n        \"severity\": \"high\"\n      }\n    },\n    \"message\": \"IAM policy for //cloudresourcemanager.googleapis.com/projects/PROJECT_ID contains member from unexpected domain: user:me@example.com\",\n    \"metadata\": {\n      \"ancestry_path\": \"organizations/ORG_ID/projects/PROJECT_ID\",\n      \"constraint\": {\n        \"annotations\": {\n          \"description\": \"Checks that members that have been granted IAM roles belong to allowlisted domains.\",\n          \"validation.gcp.forsetisecurity.org/originalName\": \"service_accounts_only\",\n          \"validation.gcp.forsetisecurity.org/yamlpath\": \"policies/constraints/iam_service_accounts_only.yaml\"\n        },\n        \"labels\": {},\n        \"parameters\": {\n          \"domains\": [\n            \"gserviceaccount.com\"\n          ]\n        }\n      },\n      \"details\": {\n        \"member\": \"user:me@example.com\",\n        \"resource\": \"//cloudresourcemanager.googleapis.com/projects/PROJECT_ID\"\n      }\n    },\n    \"resource\": \"//cloudresourcemanager.googleapis.com/projects/PROJECT_ID\",\n    \"severity\": \"high\"\n  }\n]\n```\n\nExample:\n```text\nterraform plan -out=tfplan.tfplan\nterraform show -json ./tfplan.tfplan > ./tfplan.json\ngit clone POLICY_LIBRARY_REPO POLICY_LIBRARY_DIR\nVIOLATIONS=$(gcloud beta terraform vet tfplan.json --policy-library=POLICY_LIBRARY_DIR --format=json)\nretVal=$?\nif [ $retVal -eq 2 ]; then\n  # Optional: parse the VIOLATIONS variable as json and check the severity level\n  echo \"$VIOLATIONS\"\n  echo \"Violations found; not proceeding with terraform apply\"\n  exit 1\nfi\nif [ $retVal -ne 0]; then\n  echo \"Error during gcloud beta terraform vet; not proceeding with terraform apply\"\n  exit 1\nfi\n\necho \"No policy violations detected; proceeding with terraform apply\"\n\nterraform apply\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.501Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":104,"estimatedTokens":757}}21{"id":"doc-migrate_from_terraform_validator_terraform_on_go-7960fac5","source":"documentation","title":"Migrate from terraform-validator | Terraform on Google Cloud | Google Cloud Documentation","url":"https://cloud.google.com/docs/terraform/policy-validation/migrate-from-terraform-validator","text":"Example:\n```text\n# Old\nterraform-validator validate ./tfplan.json --policy-path=/path/to/policy-library\n\n# New\ngcloud beta terraform vet ./tfplan.json --policy-library=/path/to/policy-library\n```\n\nExample:\n```text\n# Old\nGOOGLE_IMPERSONATE_SERVICE_ACCOUNT=account@project.iam.gserviceaccount.com\nterraform-validator validate ./tfplan.json --policy-path=/path/to/policy-library\n\n# New\ngcloud beta terraform vet ./tfplan.json --policy-library=/path/to/policy-library \\\n  --impersonate-service-account=account@project.iam.gserviceaccount.com\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.502Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":21,"estimatedTokens":139}}22{"id":"doc-rest_resource_folders_locations_quotaadjusterset-41755193","source":"documentation","title":"REST Resource: folders.locations.quotaAdjusterSettings | Cloud Quotas | Google Cloud Documentation","url":"https://cloud.google.com/docs/quotas/reference/rest/v1beta/folders.locations.quotaAdjusterSettings","text":"Example:\n```text\nEnablement\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.502Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}23{"id":"doc-rest_resource_folders_locations_quotapreferences-ed972554","source":"documentation","title":"REST Resource: folders.locations.quotaPreferences | Cloud Quotas | Google Cloud Documentation","url":"https://cloud.google.com/docs/quotas/reference/rest/v1beta/folders.locations.quotaPreferences","text":"Example:\n```text\nQuotaConfig\n```\n\nExample:\n```text\nOrigin\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.505Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":19}}24{"id":"doc-rest_resource_folders_locations_services_quotain-7215109c","source":"documentation","title":"REST Resource: folders.locations.services.quotaInfos | Cloud Quotas | Google Cloud Documentation","url":"https://cloud.google.com/docs/quotas/reference/rest/v1beta/folders.locations.services.quotaInfos","text":"Example:\n```text\nContainerTypeQuotaIncreaseEligibilityDimensionsInfo\n```\n\nExample:\n```text\nIneligibilityReason\n```\n\nExample:\n```text\nQuotaDetails\n```\n\nExample:\n```text\nRolloutInfo\n```\n\nExample:\n```text\n{\n  \"ongoingRollout\": boolean\n}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.506Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":28,"estimatedTokens":63}}25{"id":"doc-rest_resource_organizations_locations_services_q-a0cd7261","source":"documentation","title":"REST Resource: organizations.locations.services.quotaInfos | Cloud Quotas | Google Cloud Documentation","url":"https://cloud.google.com/docs/quotas/reference/rest/v1beta/organizations.locations.services.quotaInfos","text":"Example:\n```text\nContainerTypeQuotaIncreaseEligibilityDimensionsInfo\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.506Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":22}}26{"id":"doc-rest_resource_projects_locations_quotaadjusterse-de9f165d","source":"documentation","title":"REST Resource: projects.locations.quotaAdjusterSettings | Cloud Quotas | Google Cloud Documentation","url":"https://cloud.google.com/docs/quotas/reference/rest/v1beta/projects.locations.quotaAdjusterSettings","text":"Example:\n```text\nEnablement\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.507Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}27{"id":"doc-rest_resource_organizations_locations_quotaadjus-16ebe19e","source":"documentation","title":"REST Resource: organizations.locations.quotaAdjusterSettings | Cloud Quotas | Google Cloud Documentation","url":"https://cloud.google.com/docs/quotas/reference/rest/v1beta/organizations.locations.quotaAdjusterSettings","text":"Example:\n```text\nEnablement\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.508Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}28{"id":"doc-cloud_quotas_client_libraries_google_cloud_docum-421d66a8","source":"documentation","title":"Cloud Quotas client libraries | Google Cloud Documentation","url":"https://cloud.google.com/docs/quotas/reference/libraries","text":"Example:\n```text\ngo get cloud.google.com/go/cloudquotas\n```\n\nExample:\n```text\n<dependencyManagement>\n  <dependencies>\n    <dependency>\n      <groupId>com.google.cloud</groupId>\n      <artifactId>libraries-bom</artifactId>\n      <version>26.86.0</version>\n      <type>pom</type>\n      <scope>import</scope>\n    </dependency>\n  </dependencies>\n</dependencyManagement>\n\n<dependencies>\n  <dependency>\n    <groupId>com.google.cloud</groupId>\n    <artifactId>google-cloud-cloudquotas</artifactId>\n  </dependency>\n</dependencies>\n```\n\nExample:\n```text\nimplementation platform('com.google.cloud:libraries-bom:26.86.0')\n\nimplementation 'com.google.cloud:google-cloud-cloudquotas'\n```\n\nExample:\n```text\nlibraryDependencies += \"com.google.cloud\" % \"google-cloud-cloudquotas\" % \"0.63.0\"\n```\n\nExample:\n```text\nnpm install @google-cloud/cloudquotas\n```\n\nExample:\n```text\ncomposer require google/cloud\n```\n\nExample:\n```text\npip install google-cloud-quotas\n```\n\nExample:\n```text\ngem install google-cloud-cloud_quotas\n```\n\nExample:\n```text\ngcloud init\n```\n\nExample:\n```text\ngcloud auth application-default login\n```\n\nExample:\n```text\n// Copyright 2024 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// https://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n//! [all]\n#include \"google/cloud/cloudquotas/v1/cloud_quotas_client.h\"\n#include \"google/cloud/location.h\"\n#include <iostream>\n#include <string>\n\nint main(int argc, char* argv[]) try {\n  if (argc != 2) {\n    std::cerr << \"Usage: \" << argv[0] << \" project-id\\n\";\n    return 1;\n  }\n\n  namespace cloudquotas = ::google::cloud::cloudquotas_v1;\n  auto client =\n      cloudquotas::CloudQuotasClient(cloudquotas::MakeCloudQuotasConnection());\n\n  auto const parent = google::cloud::Location(argv[1], \"global\").FullName();\n  for (auto r : client.ListQuotaPreferences(parent)) {\n    if (!r) throw std::move(r).status();\n    std::cout << r->DebugString() << \"\\n\";\n  }\n\n  return 0;\n} catch (google::cloud::Status const& status) {\n  std::cerr << \"google::cloud::Status thrown: \" << status << \"\\n\";\n  return 1;\n}\n//! [all]\n```\n\nExample:\n```text\n// Copyright 2026 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n//     https://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// Generated code. DO NOT EDIT!\n\nnamespace GoogleCSharpSnippets\n{\n    using Google.Api.Gax;\n    using Google.Cloud.CloudQuotas.V1;\n    using Google.Protobuf.WellKnownTypes;\n    using System;\n    using System.Threading.Tasks;\n\n    /// <summary>Generated snippets.</summary>\n    public sealed class AllGeneratedCloudQuotasClientSnippets\n    {\n        /// <summary>Snippet for ListQuotaInfos</summary>\n        public void ListQuotaInfosRequestObject()\n        {\n            // Snippet: ListQuotaInfos(ListQuotaInfosRequest, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            ListQuotaInfosRequest request = new ListQuotaInfosRequest\n            {\n                ParentAsServiceName = ServiceName.FromProjectLocationService(\"[PROJECT]\", \"[LOCATION]\", \"[SERVICE]\"),\n            };\n            // Make the request\n            PagedEnumerable<ListQuotaInfosResponse, QuotaInfo> response = cloudQuotasClient.ListQuotaInfos(request);\n\n            // Iterate over all response items, lazily performing RPCs as required\n            foreach (QuotaInfo item in response)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n\n            // Or iterate over pages (of server-defined size), performing one RPC per page\n            foreach (ListQuotaInfosResponse page in response.AsRawResponses())\n            {\n                // Do something with each page of items\n                Console.WriteLine(\"A page of results:\");\n                foreach (QuotaInfo item in page)\n                {\n                    // Do something with each item\n                    Console.WriteLine(item);\n                }\n            }\n\n            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required\n            int pageSize = 10;\n            Page<QuotaInfo> singlePage = response.ReadPage(pageSize);\n            // Do something with the page of items\n            Console.WriteLine($\"A page of {pageSize} results (unless it's the final page):\");\n            foreach (QuotaInfo item in singlePage)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n            // Store the pageToken, for when the next page is required.\n            string nextPageToken = singlePage.NextPageToken;\n            // End snippet\n        }\n\n        /// <summary>Snippet for ListQuotaInfosAsync</summary>\n        public async Task ListQuotaInfosRequestObjectAsync()\n        {\n            // Snippet: ListQuotaInfosAsync(ListQuotaInfosRequest, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            ListQuotaInfosRequest request = new ListQuotaInfosRequest\n            {\n                ParentAsServiceName = ServiceName.FromProjectLocationService(\"[PROJECT]\", \"[LOCATION]\", \"[SERVICE]\"),\n            };\n            // Make the request\n            PagedAsyncEnumerable<ListQuotaInfosResponse, QuotaInfo> response = cloudQuotasClient.ListQuotaInfosAsync(request);\n\n            // Iterate over all response items, lazily performing RPCs as required\n            await foreach (QuotaInfo item in response)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n\n            // Or iterate over pages (of server-defined size), performing one RPC per page\n            await foreach (ListQuotaInfosResponse page in response.AsRawResponses())\n            {\n                // Do something with each page of items\n                Console.WriteLine(\"A page of results:\");\n                foreach (QuotaInfo item in page)\n                {\n                    // Do something with each item\n                    Console.WriteLine(item);\n                }\n            }\n\n            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required\n            int pageSize = 10;\n            Page<QuotaInfo> singlePage = await response.ReadPageAsync(pageSize);\n            // Do something with the page of items\n            Console.WriteLine($\"A page of {pageSize} results (unless it's the final page):\");\n            foreach (QuotaInfo item in singlePage)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n            // Store the pageToken, for when the next page is required.\n            string nextPageToken = singlePage.NextPageToken;\n            // End snippet\n        }\n\n        /// <summary>Snippet for ListQuotaInfos</summary>\n        public void ListQuotaInfos()\n        {\n            // Snippet: ListQuotaInfos(string, string, int?, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            string parent = \"projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]\";\n            // Make the request\n            PagedEnumerable<ListQuotaInfosResponse, QuotaInfo> response = cloudQuotasClient.ListQuotaInfos(parent);\n\n            // Iterate over all response items, lazily performing RPCs as required\n            foreach (QuotaInfo item in response)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n\n            // Or iterate over pages (of server-defined size), performing one RPC per page\n            foreach (ListQuotaInfosResponse page in response.AsRawResponses())\n            {\n                // Do something with each page of items\n                Console.WriteLine(\"A page of results:\");\n                foreach (QuotaInfo item in page)\n                {\n                    // Do something with each item\n                    Console.WriteLine(item);\n                }\n            }\n\n            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required\n            int pageSize = 10;\n            Page<QuotaInfo> singlePage = response.ReadPage(pageSize);\n            // Do something with the page of items\n            Console.WriteLine($\"A page of {pageSize} results (unless it's the final page):\");\n            foreach (QuotaInfo item in singlePage)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n            // Store the pageToken, for when the next page is required.\n            string nextPageToken = singlePage.NextPageToken;\n            // End snippet\n        }\n\n        /// <summary>Snippet for ListQuotaInfosAsync</summary>\n        public async Task ListQuotaInfosAsync()\n        {\n            // Snippet: ListQuotaInfosAsync(string, string, int?, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            string parent = \"projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]\";\n            // Make the request\n            PagedAsyncEnumerable<ListQuotaInfosResponse, QuotaInfo> response = cloudQuotasClient.ListQuotaInfosAsync(parent);\n\n            // Iterate over all response items, lazily performing RPCs as required\n            await foreach (QuotaInfo item in response)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n\n            // Or iterate over pages (of server-defined size), performing one RPC per page\n            await foreach (ListQuotaInfosResponse page in response.AsRawResponses())\n            {\n                // Do something with each page of items\n                Console.WriteLine(\"A page of results:\");\n                foreach (QuotaInfo item in page)\n                {\n                    // Do something with each item\n                    Console.WriteLine(item);\n                }\n            }\n\n            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required\n            int pageSize = 10;\n            Page<QuotaInfo> singlePage = await response.ReadPageAsync(pageSize);\n            // Do something with the page of items\n            Console.WriteLine($\"A page of {pageSize} results (unless it's the final page):\");\n            foreach (QuotaInfo item in singlePage)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n            // Store the pageToken, for when the next page is required.\n            string nextPageToken = singlePage.NextPageToken;\n            // End snippet\n        }\n\n        /// <summary>Snippet for ListQuotaInfos</summary>\n        public void ListQuotaInfosResourceNames()\n        {\n            // Snippet: ListQuotaInfos(ServiceName, string, int?, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            ServiceName parent = ServiceName.FromProjectLocationService(\"[PROJECT]\", \"[LOCATION]\", \"[SERVICE]\");\n            // Make the request\n            PagedEnumerable<ListQuotaInfosResponse, QuotaInfo> response = cloudQuotasClient.ListQuotaInfos(parent);\n\n            // Iterate over all response items, lazily performing RPCs as required\n            foreach (QuotaInfo item in response)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n\n            // Or iterate over pages (of server-defined size), performing one RPC per page\n            foreach (ListQuotaInfosResponse page in response.AsRawResponses())\n            {\n                // Do something with each page of items\n                Console.WriteLine(\"A page of results:\");\n                foreach (QuotaInfo item in page)\n                {\n                    // Do something with each item\n                    Console.WriteLine(item);\n                }\n            }\n\n            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required\n            int pageSize = 10;\n            Page<QuotaInfo> singlePage = response.ReadPage(pageSize);\n            // Do something with the page of items\n            Console.WriteLine($\"A page of {pageSize} results (unless it's the final page):\");\n            foreach (QuotaInfo item in singlePage)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n            // Store the pageToken, for when the next page is required.\n            string nextPageToken = singlePage.NextPageToken;\n            // End snippet\n        }\n\n        /// <summary>Snippet for ListQuotaInfosAsync</summary>\n        public async Task ListQuotaInfosResourceNamesAsync()\n        {\n            // Snippet: ListQuotaInfosAsync(ServiceName, string, int?, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            ServiceName parent = ServiceName.FromProjectLocationService(\"[PROJECT]\", \"[LOCATION]\", \"[SERVICE]\");\n            // Make the request\n            PagedAsyncEnumerable<ListQuotaInfosResponse, QuotaInfo> response = cloudQuotasClient.ListQuotaInfosAsync(parent);\n\n            // Iterate over all response items, lazily performing RPCs as required\n            await foreach (QuotaInfo item in response)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n\n            // Or iterate over pages (of server-defined size), performing one RPC per page\n            await foreach (ListQuotaInfosResponse page in response.AsRawResponses())\n            {\n                // Do something with each page of items\n                Console.WriteLine(\"A page of results:\");\n                foreach (QuotaInfo item in page)\n                {\n                    // Do something with each item\n                    Console.WriteLine(item);\n                }\n            }\n\n            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required\n            int pageSize = 10;\n            Page<QuotaInfo> singlePage = await response.ReadPageAsync(pageSize);\n            // Do something with the page of items\n            Console.WriteLine($\"A page of {pageSize} results (unless it's the final page):\");\n            foreach (QuotaInfo item in singlePage)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n            // Store the pageToken, for when the next page is required.\n            string nextPageToken = singlePage.NextPageToken;\n            // End snippet\n        }\n\n        /// <summary>Snippet for GetQuotaInfo</summary>\n        public void GetQuotaInfoRequestObject()\n        {\n            // Snippet: GetQuotaInfo(GetQuotaInfoRequest, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            GetQuotaInfoRequest request = new GetQuotaInfoRequest\n            {\n                QuotaInfoName = QuotaInfoName.FromProjectLocationServiceQuotaInfo(\"[PROJECT]\", \"[LOCATION]\", \"[SERVICE]\", \"[QUOTA_INFO]\"),\n            };\n            // Make the request\n            QuotaInfo response = cloudQuotasClient.GetQuotaInfo(request);\n            // End snippet\n        }\n\n        /// <summary>Snippet for GetQuotaInfoAsync</summary>\n        public async Task GetQuotaInfoRequestObjectAsync()\n        {\n            // Snippet: GetQuotaInfoAsync(GetQuotaInfoRequest, CallSettings)\n            // Additional: GetQuotaInfoAsync(GetQuotaInfoRequest, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            GetQuotaInfoRequest request = new GetQuotaInfoRequest\n            {\n                QuotaInfoName = QuotaInfoName.FromProjectLocationServiceQuotaInfo(\"[PROJECT]\", \"[LOCATION]\", \"[SERVICE]\", \"[QUOTA_INFO]\"),\n            };\n            // Make the request\n            QuotaInfo response = await cloudQuotasClient.GetQuotaInfoAsync(request);\n            // End snippet\n        }\n\n        /// <summary>Snippet for GetQuotaInfo</summary>\n        public void GetQuotaInfo()\n        {\n            // Snippet: GetQuotaInfo(string, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            string name = \"projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]/quotaInfos/[QUOTA_INFO]\";\n            // Make the request\n            QuotaInfo response = cloudQuotasClient.GetQuotaInfo(name);\n            // End snippet\n        }\n\n        /// <summary>Snippet for GetQuotaInfoAsync</summary>\n        public async Task GetQuotaInfoAsync()\n        {\n            // Snippet: GetQuotaInfoAsync(string, CallSettings)\n            // Additional: GetQuotaInfoAsync(string, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            string name = \"projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]/quotaInfos/[QUOTA_INFO]\";\n            // Make the request\n            QuotaInfo response = await cloudQuotasClient.GetQuotaInfoAsync(name);\n            // End snippet\n        }\n\n        /// <summary>Snippet for GetQuotaInfo</summary>\n        public void GetQuotaInfoResourceNames()\n        {\n            // Snippet: GetQuotaInfo(QuotaInfoName, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            QuotaInfoName name = QuotaInfoName.FromProjectLocationServiceQuotaInfo(\"[PROJECT]\", \"[LOCATION]\", \"[SERVICE]\", \"[QUOTA_INFO]\");\n            // Make the request\n            QuotaInfo response = cloudQuotasClient.GetQuotaInfo(name);\n            // End snippet\n        }\n\n        /// <summary>Snippet for GetQuotaInfoAsync</summary>\n        public async Task GetQuotaInfoResourceNamesAsync()\n        {\n            // Snippet: GetQuotaInfoAsync(QuotaInfoName, CallSettings)\n            // Additional: GetQuotaInfoAsync(QuotaInfoName, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            QuotaInfoName name = QuotaInfoName.FromProjectLocationServiceQuotaInfo(\"[PROJECT]\", \"[LOCATION]\", \"[SERVICE]\", \"[QUOTA_INFO]\");\n            // Make the request\n            QuotaInfo response = await cloudQuotasClient.GetQuotaInfoAsync(name);\n            // End snippet\n        }\n\n        /// <summary>Snippet for ListQuotaPreferences</summary>\n        public void ListQuotaPreferencesRequestObject()\n        {\n            // Snippet: ListQuotaPreferences(ListQuotaPreferencesRequest, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            ListQuotaPreferencesRequest request = new ListQuotaPreferencesRequest\n            {\n                ParentAsLocationName = LocationName.FromProjectLocation(\"[PROJECT]\", \"[LOCATION]\"),\n                Filter = \"\",\n                OrderBy = \"\",\n            };\n            // Make the request\n            PagedEnumerable<ListQuotaPreferencesResponse, QuotaPreference> response = cloudQuotasClient.ListQuotaPreferences(request);\n\n            // Iterate over all response items, lazily performing RPCs as required\n            foreach (QuotaPreference item in response)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n\n            // Or iterate over pages (of server-defined size), performing one RPC per page\n            foreach (ListQuotaPreferencesResponse page in response.AsRawResponses())\n            {\n                // Do something with each page of items\n                Console.WriteLine(\"A page of results:\");\n                foreach (QuotaPreference item in page)\n                {\n                    // Do something with each item\n                    Console.WriteLine(item);\n                }\n            }\n\n            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required\n            int pageSize = 10;\n            Page<QuotaPreference> singlePage = response.ReadPage(pageSize);\n            // Do something with the page of items\n            Console.WriteLine($\"A page of {pageSize} results (unless it's the final page):\");\n            foreach (QuotaPreference item in singlePage)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n            // Store the pageToken, for when the next page is required.\n            string nextPageToken = singlePage.NextPageToken;\n            // End snippet\n        }\n\n        /// <summary>Snippet for ListQuotaPreferencesAsync</summary>\n        public async Task ListQuotaPreferencesRequestObjectAsync()\n        {\n            // Snippet: ListQuotaPreferencesAsync(ListQuotaPreferencesRequest, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            ListQuotaPreferencesRequest request = new ListQuotaPreferencesRequest\n            {\n                ParentAsLocationName = LocationName.FromProjectLocation(\"[PROJECT]\", \"[LOCATION]\"),\n                Filter = \"\",\n                OrderBy = \"\",\n            };\n            // Make the request\n            PagedAsyncEnumerable<ListQuotaPreferencesResponse, QuotaPreference> response = cloudQuotasClient.ListQuotaPreferencesAsync(request);\n\n            // Iterate over all response items, lazily performing RPCs as required\n            await foreach (QuotaPreference item in response)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n\n            // Or iterate over pages (of server-defined size), performing one RPC per page\n            await foreach (ListQuotaPreferencesResponse page in response.AsRawResponses())\n            {\n                // Do something with each page of items\n                Console.WriteLine(\"A page of results:\");\n                foreach (QuotaPreference item in page)\n                {\n                    // Do something with each item\n                    Console.WriteLine(item);\n                }\n            }\n\n            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required\n            int pageSize = 10;\n            Page<QuotaPreference> singlePage = await response.ReadPageAsync(pageSize);\n            // Do something with the page of items\n            Console.WriteLine($\"A page of {pageSize} results (unless it's the final page):\");\n            foreach (QuotaPreference item in singlePage)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n            // Store the pageToken, for when the next page is required.\n            string nextPageToken = singlePage.NextPageToken;\n            // End snippet\n        }\n\n        /// <summary>Snippet for ListQuotaPreferences</summary>\n        public void ListQuotaPreferences()\n        {\n            // Snippet: ListQuotaPreferences(string, string, int?, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            string parent = \"projects/[PROJECT]/locations/[LOCATION]\";\n            // Make the request\n            PagedEnumerable<ListQuotaPreferencesResponse, QuotaPreference> response = cloudQuotasClient.ListQuotaPreferences(parent);\n\n            // Iterate over all response items, lazily performing RPCs as required\n            foreach (QuotaPreference item in response)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n\n            // Or iterate over pages (of server-defined size), performing one RPC per page\n            foreach (ListQuotaPreferencesResponse page in response.AsRawResponses())\n            {\n                // Do something with each page of items\n                Console.WriteLine(\"A page of results:\");\n                foreach (QuotaPreference item in page)\n                {\n                    // Do something with each item\n                    Console.WriteLine(item);\n                }\n            }\n\n            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required\n            int pageSize = 10;\n            Page<QuotaPreference> singlePage = response.ReadPage(pageSize);\n            // Do something with the page of items\n            Console.WriteLine($\"A page of {pageSize} results (unless it's the final page):\");\n            foreach (QuotaPreference item in singlePage)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n            // Store the pageToken, for when the next page is required.\n            string nextPageToken = singlePage.NextPageToken;\n            // End snippet\n        }\n\n        /// <summary>Snippet for ListQuotaPreferencesAsync</summary>\n        public async Task ListQuotaPreferencesAsync()\n        {\n            // Snippet: ListQuotaPreferencesAsync(string, string, int?, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            string parent = \"projects/[PROJECT]/locations/[LOCATION]\";\n            // Make the request\n            PagedAsyncEnumerable<ListQuotaPreferencesResponse, QuotaPreference> response = cloudQuotasClient.ListQuotaPreferencesAsync(parent);\n\n            // Iterate over all response items, lazily performing RPCs as required\n            await foreach (QuotaPreference item in response)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n\n            // Or iterate over pages (of server-defined size), performing one RPC per page\n            await foreach (ListQuotaPreferencesResponse page in response.AsRawResponses())\n            {\n                // Do something with each page of items\n                Console.WriteLine(\"A page of results:\");\n                foreach (QuotaPreference item in page)\n                {\n                    // Do something with each item\n                    Console.WriteLine(item);\n                }\n            }\n\n            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required\n            int pageSize = 10;\n            Page<QuotaPreference> singlePage = await response.ReadPageAsync(pageSize);\n            // Do something with the page of items\n            Console.WriteLine($\"A page of {pageSize} results (unless it's the final page):\");\n            foreach (QuotaPreference item in singlePage)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n            // Store the pageToken, for when the next page is required.\n            string nextPageToken = singlePage.NextPageToken;\n            // End snippet\n        }\n\n        /// <summary>Snippet for ListQuotaPreferences</summary>\n        public void ListQuotaPreferencesResourceNames()\n        {\n            // Snippet: ListQuotaPreferences(LocationName, string, int?, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            LocationName parent = LocationName.FromProjectLocation(\"[PROJECT]\", \"[LOCATION]\");\n            // Make the request\n            PagedEnumerable<ListQuotaPreferencesResponse, QuotaPreference> response = cloudQuotasClient.ListQuotaPreferences(parent);\n\n            // Iterate over all response items, lazily performing RPCs as required\n            foreach (QuotaPreference item in response)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n\n            // Or iterate over pages (of server-defined size), performing one RPC per page\n            foreach (ListQuotaPreferencesResponse page in response.AsRawResponses())\n            {\n                // Do something with each page of items\n                Console.WriteLine(\"A page of results:\");\n                foreach (QuotaPreference item in page)\n                {\n                    // Do something with each item\n                    Console.WriteLine(item);\n                }\n            }\n\n            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required\n            int pageSize = 10;\n            Page<QuotaPreference> singlePage = response.ReadPage(pageSize);\n            // Do something with the page of items\n            Console.WriteLine($\"A page of {pageSize} results (unless it's the final page):\");\n            foreach (QuotaPreference item in singlePage)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n            // Store the pageToken, for when the next page is required.\n            string nextPageToken = singlePage.NextPageToken;\n            // End snippet\n        }\n\n        /// <summary>Snippet for ListQuotaPreferencesAsync</summary>\n        public async Task ListQuotaPreferencesResourceNamesAsync()\n        {\n            // Snippet: ListQuotaPreferencesAsync(LocationName, string, int?, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            LocationName parent = LocationName.FromProjectLocation(\"[PROJECT]\", \"[LOCATION]\");\n            // Make the request\n            PagedAsyncEnumerable<ListQuotaPreferencesResponse, QuotaPreference> response = cloudQuotasClient.ListQuotaPreferencesAsync(parent);\n\n            // Iterate over all response items, lazily performing RPCs as required\n            await foreach (QuotaPreference item in response)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n\n            // Or iterate over pages (of server-defined size), performing one RPC per page\n            await foreach (ListQuotaPreferencesResponse page in response.AsRawResponses())\n            {\n                // Do something with each page of items\n                Console.WriteLine(\"A page of results:\");\n                foreach (QuotaPreference item in page)\n                {\n                    // Do something with each item\n                    Console.WriteLine(item);\n                }\n            }\n\n            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required\n            int pageSize = 10;\n            Page<QuotaPreference> singlePage = await response.ReadPageAsync(pageSize);\n            // Do something with the page of items\n            Console.WriteLine($\"A page of {pageSize} results (unless it's the final page):\");\n            foreach (QuotaPreference item in singlePage)\n            {\n                // Do something with each item\n                Console.WriteLine(item);\n            }\n            // Store the pageToken, for when the next page is required.\n            string nextPageToken = singlePage.NextPageToken;\n            // End snippet\n        }\n\n        /// <summary>Snippet for GetQuotaPreference</summary>\n        public void GetQuotaPreferenceRequestObject()\n        {\n            // Snippet: GetQuotaPreference(GetQuotaPreferenceRequest, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            GetQuotaPreferenceRequest request = new GetQuotaPreferenceRequest\n            {\n                QuotaPreferenceName = QuotaPreferenceName.FromProjectLocationQuotaPreference(\"[PROJECT]\", \"[LOCATION]\", \"[QUOTA_PREFERENCE]\"),\n            };\n            // Make the request\n            QuotaPreference response = cloudQuotasClient.GetQuotaPreference(request);\n            // End snippet\n        }\n\n        /// <summary>Snippet for GetQuotaPreferenceAsync</summary>\n        public async Task GetQuotaPreferenceRequestObjectAsync()\n        {\n            // Snippet: GetQuotaPreferenceAsync(GetQuotaPreferenceRequest, CallSettings)\n            // Additional: GetQuotaPreferenceAsync(GetQuotaPreferenceRequest, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            GetQuotaPreferenceRequest request = new GetQuotaPreferenceRequest\n            {\n                QuotaPreferenceName = QuotaPreferenceName.FromProjectLocationQuotaPreference(\"[PROJECT]\", \"[LOCATION]\", \"[QUOTA_PREFERENCE]\"),\n            };\n            // Make the request\n            QuotaPreference response = await cloudQuotasClient.GetQuotaPreferenceAsync(request);\n            // End snippet\n        }\n\n        /// <summary>Snippet for GetQuotaPreference</summary>\n        public void GetQuotaPreference()\n        {\n            // Snippet: GetQuotaPreference(string, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            string name = \"projects/[PROJECT]/locations/[LOCATION]/quotaPreferences/[QUOTA_PREFERENCE]\";\n            // Make the request\n            QuotaPreference response = cloudQuotasClient.GetQuotaPreference(name);\n            // End snippet\n        }\n\n        /// <summary>Snippet for GetQuotaPreferenceAsync</summary>\n        public async Task GetQuotaPreferenceAsync()\n        {\n            // Snippet: GetQuotaPreferenceAsync(string, CallSettings)\n            // Additional: GetQuotaPreferenceAsync(string, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            string name = \"projects/[PROJECT]/locations/[LOCATION]/quotaPreferences/[QUOTA_PREFERENCE]\";\n            // Make the request\n            QuotaPreference response = await cloudQuotasClient.GetQuotaPreferenceAsync(name);\n            // End snippet\n        }\n\n        /// <summary>Snippet for GetQuotaPreference</summary>\n        public void GetQuotaPreferenceResourceNames()\n        {\n            // Snippet: GetQuotaPreference(QuotaPreferenceName, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            QuotaPreferenceName name = QuotaPreferenceName.FromProjectLocationQuotaPreference(\"[PROJECT]\", \"[LOCATION]\", \"[QUOTA_PREFERENCE]\");\n            // Make the request\n            QuotaPreference response = cloudQuotasClient.GetQuotaPreference(name);\n            // End snippet\n        }\n\n        /// <summary>Snippet for GetQuotaPreferenceAsync</summary>\n        public async Task GetQuotaPreferenceResourceNamesAsync()\n        {\n            // Snippet: GetQuotaPreferenceAsync(QuotaPreferenceName, CallSettings)\n            // Additional: GetQuotaPreferenceAsync(QuotaPreferenceName, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            QuotaPreferenceName name = QuotaPreferenceName.FromProjectLocationQuotaPreference(\"[PROJECT]\", \"[LOCATION]\", \"[QUOTA_PREFERENCE]\");\n            // Make the request\n            QuotaPreference response = await cloudQuotasClient.GetQuotaPreferenceAsync(name);\n            // End snippet\n        }\n\n        /// <summary>Snippet for CreateQuotaPreference</summary>\n        public void CreateQuotaPreferenceRequestObject()\n        {\n            // Snippet: CreateQuotaPreference(CreateQuotaPreferenceRequest, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            CreateQuotaPreferenceRequest request = new CreateQuotaPreferenceRequest\n            {\n                ParentAsLocationName = LocationName.FromProjectLocation(\"[PROJECT]\", \"[LOCATION]\"),\n                QuotaPreferenceId = \"\",\n                QuotaPreference = new QuotaPreference(),\n                IgnoreSafetyChecks =\n                {\n                    QuotaSafetyCheck.Unspecified,\n                },\n            };\n            // Make the request\n            QuotaPreference response = cloudQuotasClient.CreateQuotaPreference(request);\n            // End snippet\n        }\n\n        /// <summary>Snippet for CreateQuotaPreferenceAsync</summary>\n        public async Task CreateQuotaPreferenceRequestObjectAsync()\n        {\n            // Snippet: CreateQuotaPreferenceAsync(CreateQuotaPreferenceRequest, CallSettings)\n            // Additional: CreateQuotaPreferenceAsync(CreateQuotaPreferenceRequest, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            CreateQuotaPreferenceRequest request = new CreateQuotaPreferenceRequest\n            {\n                ParentAsLocationName = LocationName.FromProjectLocation(\"[PROJECT]\", \"[LOCATION]\"),\n                QuotaPreferenceId = \"\",\n                QuotaPreference = new QuotaPreference(),\n                IgnoreSafetyChecks =\n                {\n                    QuotaSafetyCheck.Unspecified,\n                },\n            };\n            // Make the request\n            QuotaPreference response = await cloudQuotasClient.CreateQuotaPreferenceAsync(request);\n            // End snippet\n        }\n\n        /// <summary>Snippet for CreateQuotaPreference</summary>\n        public void CreateQuotaPreference1()\n        {\n            // Snippet: CreateQuotaPreference(string, QuotaPreference, string, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            string parent = \"projects/[PROJECT]/locations/[LOCATION]\";\n            QuotaPreference quotaPreference = new QuotaPreference();\n            string quotaPreferenceId = \"\";\n            // Make the request\n            QuotaPreference response = cloudQuotasClient.CreateQuotaPreference(parent, quotaPreference, quotaPreferenceId);\n            // End snippet\n        }\n\n        /// <summary>Snippet for CreateQuotaPreferenceAsync</summary>\n        public async Task CreateQuotaPreference1Async()\n        {\n            // Snippet: CreateQuotaPreferenceAsync(string, QuotaPreference, string, CallSettings)\n            // Additional: CreateQuotaPreferenceAsync(string, QuotaPreference, string, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            string parent = \"projects/[PROJECT]/locations/[LOCATION]\";\n            QuotaPreference quotaPreference = new QuotaPreference();\n            string quotaPreferenceId = \"\";\n            // Make the request\n            QuotaPreference response = await cloudQuotasClient.CreateQuotaPreferenceAsync(parent, quotaPreference, quotaPreferenceId);\n            // End snippet\n        }\n\n        /// <summary>Snippet for CreateQuotaPreference</summary>\n        public void CreateQuotaPreference1ResourceNames()\n        {\n            // Snippet: CreateQuotaPreference(LocationName, QuotaPreference, string, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            LocationName parent = LocationName.FromProjectLocation(\"[PROJECT]\", \"[LOCATION]\");\n            QuotaPreference quotaPreference = new QuotaPreference();\n            string quotaPreferenceId = \"\";\n            // Make the request\n            QuotaPreference response = cloudQuotasClient.CreateQuotaPreference(parent, quotaPreference, quotaPreferenceId);\n            // End snippet\n        }\n\n        /// <summary>Snippet for CreateQuotaPreferenceAsync</summary>\n        public async Task CreateQuotaPreference1ResourceNamesAsync()\n        {\n            // Snippet: CreateQuotaPreferenceAsync(LocationName, QuotaPreference, string, CallSettings)\n            // Additional: CreateQuotaPreferenceAsync(LocationName, QuotaPreference, string, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            LocationName parent = LocationName.FromProjectLocation(\"[PROJECT]\", \"[LOCATION]\");\n            QuotaPreference quotaPreference = new QuotaPreference();\n            string quotaPreferenceId = \"\";\n            // Make the request\n            QuotaPreference response = await cloudQuotasClient.CreateQuotaPreferenceAsync(parent, quotaPreference, quotaPreferenceId);\n            // End snippet\n        }\n\n        /// <summary>Snippet for CreateQuotaPreference</summary>\n        public void CreateQuotaPreference2()\n        {\n            // Snippet: CreateQuotaPreference(string, QuotaPreference, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            string parent = \"projects/[PROJECT]/locations/[LOCATION]\";\n            QuotaPreference quotaPreference = new QuotaPreference();\n            // Make the request\n            QuotaPreference response = cloudQuotasClient.CreateQuotaPreference(parent, quotaPreference);\n            // End snippet\n        }\n\n        /// <summary>Snippet for CreateQuotaPreferenceAsync</summary>\n        public async Task CreateQuotaPreference2Async()\n        {\n            // Snippet: CreateQuotaPreferenceAsync(string, QuotaPreference, CallSettings)\n            // Additional: CreateQuotaPreferenceAsync(string, QuotaPreference, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            string parent = \"projects/[PROJECT]/locations/[LOCATION]\";\n            QuotaPreference quotaPreference = new QuotaPreference();\n            // Make the request\n            QuotaPreference response = await cloudQuotasClient.CreateQuotaPreferenceAsync(parent, quotaPreference);\n            // End snippet\n        }\n\n        /// <summary>Snippet for CreateQuotaPreference</summary>\n        public void CreateQuotaPreference2ResourceNames()\n        {\n            // Snippet: CreateQuotaPreference(LocationName, QuotaPreference, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            LocationName parent = LocationName.FromProjectLocation(\"[PROJECT]\", \"[LOCATION]\");\n            QuotaPreference quotaPreference = new QuotaPreference();\n            // Make the request\n            QuotaPreference response = cloudQuotasClient.CreateQuotaPreference(parent, quotaPreference);\n            // End snippet\n        }\n\n        /// <summary>Snippet for CreateQuotaPreferenceAsync</summary>\n        public async Task CreateQuotaPreference2ResourceNamesAsync()\n        {\n            // Snippet: CreateQuotaPreferenceAsync(LocationName, QuotaPreference, CallSettings)\n            // Additional: CreateQuotaPreferenceAsync(LocationName, QuotaPreference, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            LocationName parent = LocationName.FromProjectLocation(\"[PROJECT]\", \"[LOCATION]\");\n            QuotaPreference quotaPreference = new QuotaPreference();\n            // Make the request\n            QuotaPreference response = await cloudQuotasClient.CreateQuotaPreferenceAsync(parent, quotaPreference);\n            // End snippet\n        }\n\n        /// <summary>Snippet for UpdateQuotaPreference</summary>\n        public void UpdateQuotaPreferenceRequestObject()\n        {\n            // Snippet: UpdateQuotaPreference(UpdateQuotaPreferenceRequest, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            UpdateQuotaPreferenceRequest request = new UpdateQuotaPreferenceRequest\n            {\n                UpdateMask = new FieldMask(),\n                QuotaPreference = new QuotaPreference(),\n                AllowMissing = false,\n                ValidateOnly = false,\n                IgnoreSafetyChecks =\n                {\n                    QuotaSafetyCheck.Unspecified,\n                },\n            };\n            // Make the request\n            QuotaPreference response = cloudQuotasClient.UpdateQuotaPreference(request);\n            // End snippet\n        }\n\n        /// <summary>Snippet for UpdateQuotaPreferenceAsync</summary>\n        public async Task UpdateQuotaPreferenceRequestObjectAsync()\n        {\n            // Snippet: UpdateQuotaPreferenceAsync(UpdateQuotaPreferenceRequest, CallSettings)\n            // Additional: UpdateQuotaPreferenceAsync(UpdateQuotaPreferenceRequest, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            UpdateQuotaPreferenceRequest request = new UpdateQuotaPreferenceRequest\n            {\n                UpdateMask = new FieldMask(),\n                QuotaPreference = new QuotaPreference(),\n                AllowMissing = false,\n                ValidateOnly = false,\n                IgnoreSafetyChecks =\n                {\n                    QuotaSafetyCheck.Unspecified,\n                },\n            };\n            // Make the request\n            QuotaPreference response = await cloudQuotasClient.UpdateQuotaPreferenceAsync(request);\n            // End snippet\n        }\n\n        /// <summary>Snippet for UpdateQuotaPreference</summary>\n        public void UpdateQuotaPreference()\n        {\n            // Snippet: UpdateQuotaPreference(QuotaPreference, FieldMask, CallSettings)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = CloudQuotasClient.Create();\n            // Initialize request argument(s)\n            QuotaPreference quotaPreference = new QuotaPreference();\n            FieldMask updateMask = new FieldMask();\n            // Make the request\n            QuotaPreference response = cloudQuotasClient.UpdateQuotaPreference(quotaPreference, updateMask);\n            // End snippet\n        }\n\n        /// <summary>Snippet for UpdateQuotaPreferenceAsync</summary>\n        public async Task UpdateQuotaPreferenceAsync()\n        {\n            // Snippet: UpdateQuotaPreferenceAsync(QuotaPreference, FieldMask, CallSettings)\n            // Additional: UpdateQuotaPreferenceAsync(QuotaPreference, FieldMask, CancellationToken)\n            // Create client\n            CloudQuotasClient cloudQuotasClient = await CloudQuotasClient.CreateAsync();\n            // Initialize request argument(s)\n            QuotaPreference quotaPreference = new QuotaPreference();\n            FieldMask updateMask = new FieldMask();\n            // Make the request\n            QuotaPreference response = await cloudQuotasClient.UpdateQuotaPreferenceAsync(quotaPreference, updateMask);\n            // End snippet\n        }\n    }\n}\n```\n\nExample:\n```text\n// Copyright 2026 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n//     https://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// Code generated by protoc-gen-go_gapic. DO NOT EDIT.\n\npackage cloudquotas_test\n\nimport (\n\t\"context\"\n\n\tcloudquotas \"cloud.google.com/go/cloudquotas/apiv1\"\n\tcloudquotaspb \"cloud.google.com/go/cloudquotas/apiv1/cloudquotaspb\"\n\t\"google.golang.org/api/iterator\"\n)\n\nfunc ExampleNewClient() {\n\tctx := context.Background()\n\t// This snippet has been automatically generated and should be regarded as a code template only.\n\t// It will require modifications to work:\n\t// - It may require correct/in-range values for request initialization.\n\t// - It may require specifying regional endpoints when creating the service client as shown in:\n\t//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options\n\tc, err := cloudquotas.NewClient(ctx)\n\tif err != nil {\n\t\t// TODO: Handle error.\n\t}\n\tdefer c.Close()\n\n\t// TODO: Use client.\n\t_ = c\n}\n\nfunc ExampleNewRESTClient() {\n\tctx := context.Background()\n\t// This snippet has been automatically generated and should be regarded as a code template only.\n\t// It will require modifications to work:\n\t// - It may require correct/in-range values for request initialization.\n\t// - It may require specifying regional endpoints when creating the service client as shown in:\n\t//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options\n\tc, err := cloudquotas.NewRESTClient(ctx)\n\tif err != nil {\n\t\t// TODO: Handle error.\n\t}\n\tdefer c.Close()\n\n\t// TODO: Use client.\n\t_ = c\n}\n\nfunc ExampleClient_CreateQuotaPreference() {\n\tctx := context.Background()\n\t// This snippet has been automatically generated and should be regarded as a code template only.\n\t// It will require modifications to work:\n\t// - It may require correct/in-range values for request initialization.\n\t// - It may require specifying regional endpoints when creating the service client as shown in:\n\t//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options\n\tc, err := cloudquotas.NewClient(ctx)\n\tif err != nil {\n\t\t// TODO: Handle error.\n\t}\n\tdefer c.Close()\n\n\treq := &cloudquotaspb.CreateQuotaPreferenceRequest{\n\t\t// TODO: Fill request struct fields.\n\t\t// See https://pkg.go.dev/cloud.google.com/go/cloudquotas/apiv1/cloudquotaspb#CreateQuotaPreferenceRequest.\n\t}\n\tresp, err := c.CreateQuotaPreference(ctx, req)\n\tif err != nil {\n\t\t// TODO: Handle error.\n\t}\n\t// TODO: Use resp.\n\t_ = resp\n}\n\nfunc ExampleClient_GetQuotaInfo() {\n\tctx := context.Background()\n\t// This snippet has been automatically generated and should be regarded as a code template only.\n\t// It will require modifications to work:\n\t// - It may require correct/in-range values for request initialization.\n\t// - It may require specifying regional endpoints when creating the service client as shown in:\n\t//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options\n\tc, err := cloudquotas.NewClient(ctx)\n\tif err != nil {\n\t\t// TODO: Handle error.\n\t}\n\tdefer c.Close()\n\n\treq := &cloudquotaspb.GetQuotaInfoRequest{\n\t\t// TODO: Fill request struct fields.\n\t\t// See https://pkg.go.dev/cloud.google.com/go/cloudquotas/apiv1/cloudquotaspb#GetQuotaInfoRequest.\n\t}\n\tresp, err := c.GetQuotaInfo(ctx, req)\n\tif err != nil {\n\t\t// TODO: Handle error.\n\t}\n\t// TODO: Use resp.\n\t_ = resp\n}\n\nfunc ExampleClient_GetQuotaPreference() {\n\tctx := context.Background()\n\t// This snippet has been automatically generated and should be regarded as a code template only.\n\t// It will require modifications to work:\n\t// - It may require correct/in-range values for request initialization.\n\t// - It may require specifying regional endpoints when creating the service client as shown in:\n\t//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options\n\tc, err := cloudquotas.NewClient(ctx)\n\tif err != nil {\n\t\t// TODO: Handle error.\n\t}\n\tdefer c.Close()\n\n\treq := &cloudquotaspb.GetQuotaPreferenceRequest{\n\t\t// TODO: Fill request struct fields.\n\t\t// See https://pkg.go.dev/cloud.google.com/go/cloudquotas/apiv1/cloudquotaspb#GetQuotaPreferenceRequest.\n\t}\n\tresp, err := c.GetQuotaPreference(ctx, req)\n\tif err != nil {\n\t\t// TODO: Handle error.\n\t}\n\t// TODO: Use resp.\n\t_ = resp\n}\n\nfunc ExampleClient_ListQuotaInfos() {\n\tctx := context.Background()\n\t// This snippet has been automatically generated and should be regarded as a code template only.\n\t// It will require modifications to work:\n\t// - It may require correct/in-range values for request initialization.\n\t// - It may require specifying regional endpoints when creating the service client as shown in:\n\t//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options\n\tc, err := cloudquotas.NewClient(ctx)\n\tif err != nil {\n\t\t// TODO: Handle error.\n\t}\n\tdefer c.Close()\n\n\treq := &cloudquotaspb.ListQuotaInfosRequest{\n\t\t// TODO: Fill request struct fields.\n\t\t// See https://pkg.go.dev/cloud.google.com/go/cloudquotas/apiv1/cloudquotaspb#ListQuotaInfosRequest.\n\t}\n\tit := c.ListQuotaInfos(ctx, req)\n\tfor {\n\t\tresp, err := it.Next()\n\t\tif err == iterator.Done {\n\t\t\tbreak\n\t\t}\n\t\tif err != nil {\n\t\t\t// TODO: Handle error.\n\t\t}\n\t\t// TODO: Use resp.\n\t\t_ = resp\n\n\t\t// If you need to access the underlying RPC response,\n\t\t// you can do so by casting the `Response` as below.\n\t\t// Otherwise, remove this line. Only populated after\n\t\t// first call to Next(). Not safe for concurrent access.\n\t\t_ = it.Response.(*cloudquotaspb.ListQuotaInfosResponse)\n\t}\n}\n\nfunc ExampleClient_ListQuotaPreferences() {\n\tctx := context.Background()\n\t// This snippet has been automatically generated and should be regarded as a code template only.\n\t// It will require modifications to work:\n\t// - It may require correct/in-range values for request initialization.\n\t// - It may require specifying regional endpoints when creating the service client as shown in:\n\t//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options\n\tc, err := cloudquotas.NewClient(ctx)\n\tif err != nil {\n\t\t// TODO: Handle error.\n\t}\n\tdefer c.Close()\n\n\treq := &cloudquotaspb.ListQuotaPreferencesRequest{\n\t\t// TODO: Fill request struct fields.\n\t\t// See https://pkg.go.dev/cloud.google.com/go/cloudquotas/apiv1/cloudquotaspb#ListQuotaPreferencesRequest.\n\t}\n\tit := c.ListQuotaPreferences(ctx, req)\n\tfor {\n\t\tresp, err := it.Next()\n\t\tif err == iterator.Done {\n\t\t\tbreak\n\t\t}\n\t\tif err != nil {\n\t\t\t// TODO: Handle error.\n\t\t}\n\t\t// TODO: Use resp.\n\t\t_ = resp\n\n\t\t// If you need to access the underlying RPC response,\n\t\t// you can do so by casting the `Response` as below.\n\t\t// Otherwise, remove this line. Only populated after\n\t\t// first call to Next(). Not safe for concurrent access.\n\t\t_ = it.Response.(*cloudquotaspb.ListQuotaPreferencesResponse)\n\t}\n}\n\nfunc ExampleClient_UpdateQuotaPreference() {\n\tctx := context.Background()\n\t// This snippet has been automatically generated and should be regarded as a code template only.\n\t// It will require modifications to work:\n\t// - It may require correct/in-range values for request initialization.\n\t// - It may require specifying regional endpoints when creating the service client as shown in:\n\t//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options\n\tc, err := cloudquotas.NewClient(ctx)\n\tif err != nil {\n\t\t// TODO: Handle error.\n\t}\n\tdefer c.Close()\n\n\treq := &cloudquotaspb.UpdateQuotaPreferenceRequest{\n\t\t// TODO: Fill request struct fields.\n\t\t// See https://pkg.go.dev/cloud.google.com/go/cloudquotas/apiv1/cloudquotaspb#UpdateQuotaPreferenceRequest.\n\t}\n\tresp, err := c.UpdateQuotaPreference(ctx, req)\n\tif err != nil {\n\t\t// TODO: Handle error.\n\t}\n\t// TODO: Use resp.\n\t_ = resp\n}\n```\n\nExample:\n```text\n/*\n * Copyright 2026 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npackage com.google.api.cloudquotas.v1.samples;\n\nimport com.google.api.cloudquotas.v1.CloudQuotasClient;\nimport com.google.api.cloudquotas.v1.GetQuotaInfoRequest;\nimport com.google.api.cloudquotas.v1.QuotaInfo;\nimport com.google.api.cloudquotas.v1.QuotaInfoName;\n\npublic class SyncGetQuotaInfo {\n\n  public static void main(String[] args) throws Exception {\n    syncGetQuotaInfo();\n  }\n\n  public static void syncGetQuotaInfo() throws Exception {\n    // This snippet has been automatically generated and should be regarded as a code template only.\n    // It will require modifications to work:\n    // - It may require correct/in-range values for request initialization.\n    // - It may require specifying regional endpoints when creating the service client as shown in\n    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library\n    try (CloudQuotasClient cloudQuotasClient = CloudQuotasClient.create()) {\n      GetQuotaInfoRequest request =\n          GetQuotaInfoRequest.newBuilder()\n              .setName(\n                  QuotaInfoName.ofProjectLocationServiceQuotaInfoName(\n                          \"[PROJECT]\", \"[LOCATION]\", \"[SERVICE]\", \"[QUOTA_INFO]\")\n                      .toString())\n              .build();\n      QuotaInfo response = cloudQuotasClient.getQuotaInfo(request);\n    }\n  }\n}\n```\n\nExample:\n```text\n// Copyright 2026 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n//     https://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n// ** This file is automatically generated by gapic-generator-typescript. **\n// ** https://github.com/googleapis/gapic-generator-typescript **\n// ** All changes to this file may be overwritten. **\n\n\n\n'use strict';\n\nfunction main(name) {\n  /**\n   * This snippet has been automatically generated and should be regarded as a code template only.\n   * It will require modifications to work.\n   * It may require correct/in-range values for request initialization.\n   * TODO(developer): Uncomment these variables before running the sample.\n   */\n  /**\n   *  Required. Identifier. The resource name of the quota info.\n   *  An example name:\n   *  `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion`\n   */\n  // const name = 'abc123'\n\n  // Imports the Cloudquotas library\n  const {CloudQuotasClient} = require('@google-cloud/cloudquotas').v1;\n\n  // Instantiates a client\n  const cloudquotasClient = new CloudQuotasClient();\n\n  async function callGetQuotaInfo() {\n    // Construct request\n    const request = {\n      name,\n    };\n\n    // Run request\n    const response = await cloudquotasClient.getQuotaInfo(request);\n    console.log(response);\n  }\n\n  callGetQuotaInfo();\n}\n\nprocess.on('unhandledRejection', err => {\n  console.error(err.message);\n  process.exitCode = 1;\n});\nmain(...process.argv.slice(2));\n```\n\nExample:\n```text\n<?php\n/*\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * GENERATED CODE WARNING\n * This file was automatically generated - do not edit!\n */\n\nrequire_once __DIR__ . '/../../../vendor/autoload.php';\n\nuse Google\\ApiCore\\ApiException;\nuse Google\\Cloud\\CloudQuotas\\V1\\Client\\CloudQuotasClient;\nuse Google\\Cloud\\CloudQuotas\\V1\\GetQuotaInfoRequest;\nuse Google\\Cloud\\CloudQuotas\\V1\\QuotaInfo;\n\n/**\n * Retrieve the QuotaInfo of a quota for a project, folder or organization.\n *\n * @param string $formattedName Identifier. The resource name of the quota info.\n *\n *                              An example name:\n *                              `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion`\n *                              Please see {@see CloudQuotasClient::quotaInfoName()} for help formatting this field.\n */\nfunction get_quota_info_sample(string $formattedName): void\n{\n    // Create a client.\n    $cloudQuotasClient = new CloudQuotasClient();\n\n    // Prepare the request message.\n    $request = (new GetQuotaInfoRequest())\n        ->setName($formattedName);\n\n    // Call the API and handle any network failures.\n    try {\n        /** @var QuotaInfo $response */\n        $response = $cloudQuotasClient->getQuotaInfo($request);\n        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());\n    } catch (ApiException $ex) {\n        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());\n    }\n}\n\n/**\n * Helper to execute the sample.\n *\n * This sample has been automatically generated and should be regarded as a code\n * template only. It will require modifications to work:\n *  - It may require correct/in-range values for request initialization.\n *  - It may require specifying regional endpoints when creating the service client,\n *    please see the apiEndpoint client configuration option for more details.\n */\nfunction callSample(): void\n{\n    $formattedName = CloudQuotasClient::quotaInfoName(\n        '[PROJECT]',\n        '[LOCATION]',\n        '[SERVICE]',\n        '[QUOTA_INFO]'\n    );\n\n    get_quota_info_sample($formattedName);\n}\n```\n\nExample:\n```text\n# -*- coding: utf-8 -*-\n# Copyright 2026 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n# Generated code. DO NOT EDIT!\n#\n# Snippet for GetQuotaInfo\n# NOTE: This snippet has been automatically generated for illustrative purposes only.\n# It may require modifications to work in your environment.\n\n# To install the latest published package dependency, execute the following:\n#   python3 -m pip install google-cloud-quotas\n\n\n# This snippet has been automatically generated and should be regarded as a\n# code template only.\n# It will require modifications to work:\n# - It may require correct/in-range values for request initialization.\n# - It may require specifying regional endpoints when creating the service\n#   client as shown in:\n#   https://googleapis.dev/python/google-api-core/latest/client_options.html\nfrom google.cloud import cloudquotas_v1\n\n\ndef sample_get_quota_info():\n    # Create a client\n    client = cloudquotas_v1.CloudQuotasClient()\n\n    # Initialize request argument(s)\n    request = cloudquotas_v1.GetQuotaInfoRequest(\n        name=\"name_value\",\n    )\n\n    # Make the request\n    response = client.get_quota_info(request=request)\n\n    # Handle the response\n    print(response)\n```\n\nExample:\n```text\n# frozen_string_literal: true\n\n# Copyright 2026 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n# Auto-generated by gapic-generator-ruby. DO NOT EDIT!\n\nrequire \"google/cloud/cloud_quotas/v1\"\n\n##\n# Snippet for the get_quota_info call in the CloudQuotas service\n#\n# This snippet has been automatically generated and should be regarded as a code\n# template only. It will require modifications to work:\n# - It may require correct/in-range values for request initialization.\n# - It may require specifying regional endpoints when creating the service\n# client as shown in https://cloud.google.com/ruby/docs/reference.\n#\n# This is an auto-generated example demonstrating basic usage of\n# Google::Cloud::CloudQuotas::V1::CloudQuotas::Client#get_quota_info.\n#\ndef get_quota_info\n  # Create a client object. The client can be reused for multiple calls.\n  client = Google::Cloud::CloudQuotas::V1::CloudQuotas::Client.new\n\n  # Create a request. To set request fields, pass in keyword arguments.\n  request = Google::Cloud::CloudQuotas::V1::GetQuotaInfoRequest.new\n\n  # Call the get_quota_info method.\n  result = client.get_quota_info request\n\n  # The returned object is of type Google::Cloud::CloudQuotas::V1::QuotaInfo.\n  p result\nend\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.512Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":18,"totalLines":1655,"estimatedTokens":16973}}29{"id":"doc-rest_resource_organizations_locations_quotaprefe-97cfa582","source":"documentation","title":"REST Resource: organizations.locations.quotaPreferences | Cloud Quotas | Google Cloud Documentation","url":"https://cloud.google.com/docs/quotas/reference/rest/v1beta/organizations.locations.quotaPreferences","text":"Example:\n```text\nQuotaConfig\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.514Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}30{"id":"doc-listquotapreferencesresponse_cloud_quotas_google-42f06b37","source":"documentation","title":"ListQuotaPreferencesResponse | Cloud Quotas | Google Cloud Documentation","url":"https://cloud.google.com/docs/quotas/reference/rest/v1beta/ListQuotaPreferencesResponse","text":"Example:\n```text\nQuotaPreference\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:15:14.514Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":13}}31